Skip to content

Commit 2acfc56

Browse files
authored
Merge pull request #1 from phardy/master
Changes required to work on Arduino Leonard. Thanks a lot!
2 parents 3aefd44 + 1697eb6 commit 2acfc56

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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.

src/CmdCallback.cpp

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

99
void CmdCallbackObject::loopCmdProcessing(CmdParser * cmdParser,
1010
CmdBufferObject *cmdBuffer,
11-
HardwareSerial * serial)
11+
Stream * serial)
1212
{
1313
do {
1414
// read data

src/CmdCallback.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class CmdCallbackObject
3838
* @param serial Arduino serial interface from comming data
3939
*/
4040
void loopCmdProcessing(CmdParser *cmdParser, CmdBufferObject *cmdBuffer,
41-
HardwareSerial *serial);
41+
Stream *serial);
4242

4343
/**
4444
* Search command in the buffer and execute the callback function.

0 commit comments

Comments
 (0)