Skip to content

Commit b6d6c44

Browse files
committed
Change readFromSerial signature to use Stream objects.
1 parent 3aefd44 commit b6d6c44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CmdBuffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include "CmdBuffer.hpp"
88

9-
bool CmdBufferObject::readFromSerial(HardwareSerial *serial, uint32_t timeOut)
9+
bool CmdBufferObject::readFromSerial(Stream *serial, uint32_t timeOut)
1010
{
1111
uint32_t isTimeOut;
1212
uint32_t startTime;

src/CmdBuffer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CmdBufferObject
3737
* @return TRUE if data readed until end character or FALSE
3838
* is a timeout receive or buffer is full.
3939
*/
40-
bool readFromSerial(HardwareSerial *serial, uint32_t timeOut = 0);
40+
bool readFromSerial(Stream *serial, uint32_t timeOut = 0);
4141

4242
/**
4343
* Set a ASCII character for serial cmd end.

0 commit comments

Comments
 (0)