Skip to content

Commit bf50f5e

Browse files
committed
Add cast to (voidPrtFuncPtr)
1 parent c5e5d49 commit bf50f5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
286286
if (enable_watchdog) {
287287
watchdog_enable();
288288
#ifdef WIFI_HAS_FEED_WATCHDOG_FUNC
289-
WiFi.setFeedWatchdogFunc(watchdog_reset);
290-
#endif
289+
WiFi.setFeedWatchdogFunc((voidPrtFuncPtr)watchdog_reset);
290+
#endif /* WIFI_HAS_FEED_WATCHDOG_FUNC */
291291
}
292292

293293
#endif

0 commit comments

Comments
 (0)