mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-14 07:56:52 +01:00
BugFix: 100% CPU
This commit is contained in:
@@ -503,7 +503,8 @@ int Network::recv(uint8_t* buf, uint16_t len)
|
||||
}
|
||||
|
||||
_busy = true;
|
||||
loop: do
|
||||
loop:
|
||||
do
|
||||
{
|
||||
readBlockedOnWrite = false;
|
||||
readBlocked = false;
|
||||
|
||||
@@ -400,7 +400,7 @@ SerialPort::SerialPort()
|
||||
_tio.c_iflag = IGNBRK | IGNPAR;
|
||||
_tio.c_cflag = CS8 | CLOCAL | CRTSCTS;
|
||||
_tio.c_cc[VINTR] = 0;
|
||||
_tio.c_cc[VTIME] = 0;
|
||||
_tio.c_cc[VTIME] = 10; // 1 sec.
|
||||
_tio.c_cc[VMIN] = 1;
|
||||
_fd = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user