Skip to content

Commit ca90bf7

Browse files
committed
Bridge: Increased timeout when receiving "lenght" field.
Fixes a weird timing issue: http://forum.arduino.cc/index.php?topic=188955.0
1 parent 43477bd commit ca90bf7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build/shared/revisions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ ARDUINO 1.5.5 BETA
33

44
[libraries]
55
* avr: Fixed buffer overflow in File::doBuffer() (dreggy)
6+
* avr: Fixed timeout in Bridge::transfer()
67

78
ARDUINO 1.5.4 BETA 2013.09.10
89

libraries/Bridge/src/Bridge.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ uint16_t BridgeClass::transfer(const uint8_t *buff1, uint16_t len1,
158158
crcUpdate(index);
159159

160160
// Recv len
161-
int lh = timedRead(5);
161+
int lh = timedRead(10);
162162
if (lh < 0)
163163
continue;
164164
crcUpdate(lh);
165-
int ll = timedRead(5);
165+
int ll = timedRead(10);
166166
if (ll < 0)
167167
continue;
168168
crcUpdate(ll);

0 commit comments

Comments
 (0)