1
0
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:
Cristian Maglie 2013-09-21 23:40:38 +02:00
parent 43477bd9d6
commit ca90bf75cb
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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);