mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01: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:
parent
43477bd9d6
commit
ca90bf75cb
@ -3,6 +3,7 @@ ARDUINO 1.5.5 BETA
|
||||
|
||||
[libraries]
|
||||
* avr: Fixed buffer overflow in File::doBuffer() (dreggy)
|
||||
* avr: Fixed timeout in Bridge::transfer()
|
||||
|
||||
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);
|
||||
|
||||
// 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user