We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3aefd44 commit b6d6c44Copy full SHA for b6d6c44
src/CmdBuffer.cpp
@@ -6,7 +6,7 @@
6
7
#include "CmdBuffer.hpp"
8
9
-bool CmdBufferObject::readFromSerial(HardwareSerial *serial, uint32_t timeOut)
+bool CmdBufferObject::readFromSerial(Stream *serial, uint32_t timeOut)
10
{
11
uint32_t isTimeOut;
12
uint32_t startTime;
src/CmdBuffer.hpp
@@ -37,7 +37,7 @@ class CmdBufferObject
37
* @return TRUE if data readed until end character or FALSE
38
* is a timeout receive or buffer is full.
39
*/
40
- bool readFromSerial(HardwareSerial *serial, uint32_t timeOut = 0);
+ bool readFromSerial(Stream *serial, uint32_t timeOut = 0);
41
42
/**
43
* Set a ASCII character for serial cmd end.
0 commit comments