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:
@ -3,6 +3,7 @@ ARDUINO 1.5.5 BETA
|
|||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
* avr: Fixed buffer overflow in File::doBuffer() (dreggy)
|
* avr: Fixed buffer overflow in File::doBuffer() (dreggy)
|
||||||
|
* avr: Fixed timeout in Bridge::transfer()
|
||||||
|
|
||||||
ARDUINO 1.5.4 BETA 2013.09.10
|
ARDUINO 1.5.4 BETA 2013.09.10
|
||||||
|
|
||||||
|
@ -158,11 +158,11 @@ uint16_t BridgeClass::transfer(const uint8_t *buff1, uint16_t len1,
|
|||||||
crcUpdate(index);
|
crcUpdate(index);
|
||||||
|
|
||||||
// Recv len
|
// Recv len
|
||||||
int lh = timedRead(5);
|
int lh = timedRead(10);
|
||||||
if (lh < 0)
|
if (lh < 0)
|
||||||
continue;
|
continue;
|
||||||
crcUpdate(lh);
|
crcUpdate(lh);
|
||||||
int ll = timedRead(5);
|
int ll = timedRead(10);
|
||||||
if (ll < 0)
|
if (ll < 0)
|
||||||
continue;
|
continue;
|
||||||
crcUpdate(ll);
|
crcUpdate(ll);
|
||||||
|
Reference in New Issue
Block a user