File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -215,13 +215,13 @@ void SpiDrv::waitForSlaveSign()
215
215
while (!waitSlaveSign ());
216
216
}
217
217
218
- void SpiDrv::waitForSlaveReady (bool const feed_watchdog)
218
+ void SpiDrv::waitForSlaveReady (bool const feed_watchdog, int timeout )
219
219
{
220
220
unsigned long const start = millis ();
221
221
while (!waitSlaveReady ())
222
222
{
223
223
if (feed_watchdog) {
224
- if ((millis () - start) < 10000 ) {
224
+ if ((millis () - start) < timeout ) {
225
225
WiFi.feedWatchdog ();
226
226
}
227
227
}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class SpiDrv
59
59
60
60
static char spiTransfer (volatile char data);
61
61
62
- static void waitForSlaveReady (bool const feed_watchdog = false );
62
+ static void waitForSlaveReady (bool const feed_watchdog = true , int timeout= 6000 );
63
63
64
64
// static int waitSpiChar(char waitChar, char* readChar);
65
65
You can’t perform that action at this time.
0 commit comments