Skip to content

Commit 015444a

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Wire/Wire.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ int TwoWire::available(void)
227227
{
228228
// yielding here will not make more data "available",
229229
// but it will prevent the system from going into WDT reset
230-
optimistic_yield(1000);
230+
optimistic_yield(10000UL);
231231
}
232232

233233
return result;

0 commit comments

Comments
 (0)