Skip to content

Commit b05daef

Browse files
committed
Add cast to (voidPrtFuncPtr)
1 parent 3cbf050 commit b05daef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ArduinoIoTCloudTCP.cpp

+2-2
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)