Fix consistent yield usage & LED updates

This commit is contained in:
Embedded Innovation
2016-11-07 21:28:25 +01:00
parent fedf326099
commit 9254b45150
6 changed files with 38 additions and 25 deletions
+1 -1
View File
@@ -497,7 +497,7 @@ bool transportWait(const uint32_t ms, const uint8_t cmd, const uint8_t msgtype){
while ((hwMillis() - enter < ms) && !expectedResponse) {
// process incoming messages
transportProcessFIFO();
yield(); // process esp8266 stack, ignored for AVR
doYield();
expectedResponse = (mGetCommand(_msg) == cmd && _msg.type == msgtype);
}
return expectedResponse;