File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,10 @@ int rp2040_connect_onOTARequest(char const * ota_url)
101
101
mbed_watchdog_reset ();
102
102
103
103
mbed::FATFileSystem fs (" ota" );
104
- if ((err = fs.mount (&flash)) != 0 )
104
+ if ((err = fs.reformat (&flash)) != 0 )
105
105
{
106
- DEBUG_ERROR (" %s: fs.mount () failed with %d" , __FUNCTION__, err);
107
- return static_cast <int >(OTAError::RP2040_ErrorMount );
106
+ DEBUG_ERROR (" %s: fs.reformat () failed with %d" , __FUNCTION__, err);
107
+ return static_cast <int >(OTAError::RP2040_ErrorReformat );
108
108
}
109
109
110
110
mbed_watchdog_reset ();
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ enum class OTAError : int
46
46
RP2040_ErrorWriteUpdateFile = RP2040_OTA_ERROR_BASE - 5 ,
47
47
RP2040_ErrorParseHttpHeader = RP2040_OTA_ERROR_BASE - 6 ,
48
48
RP2040_ErrorFlashInit = RP2040_OTA_ERROR_BASE - 7 ,
49
- RP2040_ErrorMount = RP2040_OTA_ERROR_BASE - 8 ,
49
+ RP2040_ErrorReformat = RP2040_OTA_ERROR_BASE - 8 ,
50
50
RP2040_ErrorUnmount = RP2040_OTA_ERROR_BASE - 9 ,
51
51
};
52
52
You can’t perform that action at this time.
0 commit comments