Skip to content

Commit 65a001f

Browse files
committed
Wire has an available() function - 10000µs optimistic_yield interval is the rule of thumb.
1 parent fed2ca8 commit 65a001f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Wire/Wire.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ int TwoWire::available(void)
226226
{
227227
// yielding here will not make more data "available",
228228
// but it will prevent the system from going into WDT reset
229-
optimistic_yield(1000);
229+
optimistic_yield(10000UL);
230230
}
231231

232232
return result;

0 commit comments

Comments
 (0)