Skip to content

Commit fd7cb6b

Browse files
committed
pass wdog feed function to Arduino_Portenta_OTA library so it can be called during decompression phase
1 parent b05daef commit fd7cb6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utility/ota/OTA-portenta-h7.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ int portenta_h7_onOTARequest(char const * ota_url)
4040
/* Use 2nd partition of QSPI (1st partition contains WiFi firmware) */
4141
Arduino_Portenta_OTA_QSPI ota_portenta_qspi(QSPI_FLASH_FATFS_MBR, 2);
4242

43+
#if defined (PORTENTA_OTA_HAS_WATCHDOG_FEED)
44+
ota_portenta_qspi.setFeedWatchdogFunc((voidPrtFuncPtr)watchdog_reset);
45+
#endif
46+
4347
watchdog_reset();
4448

4549
/* Initialize the QSPI memory for OTA handling. */

0 commit comments

Comments
 (0)