!10 优化串口开销
Merge pull request !10 from AiYangSky/Serial-port-optimization
This commit is contained in:
commit
c0b7ac6ca7
|
@ -39,9 +39,8 @@ public:
|
|||
|
||||
virtual bool inPutByte(IN uint8_t *byte)
|
||||
{
|
||||
if (ser->available() > 0)
|
||||
if (ser->read(byte, 1))
|
||||
{
|
||||
ser->read(byte, 1);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue