Skip to content

Commit 36e41df

Browse files
removing feed_watchdog boolean
1 parent b1fe60d commit 36e41df

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/utility/spi_drv.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,13 @@ void SpiDrv::waitForSlaveSign()
215215
while (!waitSlaveSign());
216216
}
217217

218-
void SpiDrv::waitForSlaveReady(bool const feed_watchdog)
218+
void SpiDrv::waitForSlaveReady()
219219
{
220220
unsigned long const start = millis();
221221
while (!waitSlaveReady())
222222
{
223-
if (feed_watchdog) {
224-
if ((millis() - start) < 10000) {
225-
WiFi.feedWatchdog();
226-
}
223+
if ((millis() - start) < 10000) {
224+
WiFi.feedWatchdog();
227225
}
228226
}
229227
}

src/utility/spi_drv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class SpiDrv
5959

6060
static char spiTransfer(volatile char data);
6161

62-
static void waitForSlaveReady(bool const feed_watchdog = false);
62+
static void waitForSlaveReady();
6363

6464
//static int waitSpiChar(char waitChar, char* readChar);
6565

0 commit comments

Comments
 (0)