Skip to content

Commit d39cd90

Browse files
changing download to downloadAndDecompress for mbed core
1 parent d436b80 commit d39cd90

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Diff for: src/utility/ota/OTA-portenta-h7.cpp

+1-12
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,11 @@ int portenta_h7_onOTARequest(char const * ota_url, NetworkAdapter iface)
8080
download_socket = static_cast<MbedSocketClass*>(&Ethernet);
8181
}
8282
#endif
83-
int const ota_portenta_qspi_download_ret_code = ota_portenta_qspi.download(ota_url, true /* is_https */, download_socket);
83+
int const ota_portenta_qspi_download_ret_code = ota_portenta_qspi.downloadAndDecompress(ota_url, true /* is_https */, download_socket);
8484
DEBUG_VERBOSE("Arduino_Portenta_OTA_QSPI::download(%s) returns %d", ota_url, ota_portenta_qspi_download_ret_code);
8585

8686
watchdog_reset();
8787

88-
/* Decompress the LZSS compressed OTA file. */
89-
int const ota_portenta_qspi_decompress_ret_code = ota_portenta_qspi.decompress();
90-
DEBUG_VERBOSE("Arduino_Portenta_OTA_QSPI::decompress() returns %d", ota_portenta_qspi_decompress_ret_code);
91-
if (ota_portenta_qspi_decompress_ret_code < 0)
92-
{
93-
DEBUG_ERROR("Arduino_Portenta_OTA_QSPI::decompress() failed with %d", ota_portenta_qspi_decompress_ret_code);
94-
return ota_portenta_qspi_decompress_ret_code;
95-
}
96-
97-
watchdog_reset();
98-
9988
/* Schedule the firmware update. */
10089
if((ota_portenta_err = ota_portenta_qspi.update()) != Arduino_Portenta_OTA::Error::None) {
10190
DEBUG_ERROR("Arduino_Portenta_OTA_QSPI::update() failed with %d", static_cast<int>(ota_portenta_err));

0 commit comments

Comments
 (0)