mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Bridge: Increased timeout when receiving "lenght" field.
Fixes a weird timing issue: http://forum.arduino.cc/index.php?topic=188955.0
This commit is contained in:
@ -158,11 +158,11 @@ uint16_t BridgeClass::transfer(const uint8_t *buff1, uint16_t len1,
|
||||
crcUpdate(index);
|
||||
|
||||
// Recv len
|
||||
int lh = timedRead(5);
|
||||
int lh = timedRead(10);
|
||||
if (lh < 0)
|
||||
continue;
|
||||
crcUpdate(lh);
|
||||
int ll = timedRead(5);
|
||||
int ll = timedRead(10);
|
||||
if (ll < 0)
|
||||
continue;
|
||||
crcUpdate(ll);
|
||||
|
Reference in New Issue
Block a user