Firmware backup writing now uses OpenLocalFile
This commit is contained in:
parent
99b07f9300
commit
3a9410b5d0
|
@ -130,11 +130,11 @@ void Reset()
|
||||||
|
|
||||||
// take a backup
|
// take a backup
|
||||||
const char* firmbkp = "firmware.bin.bak";
|
const char* firmbkp = "firmware.bin.bak";
|
||||||
f = fopen(firmbkp, "rb");
|
f = Platform::OpenLocalFile(firmbkp, "rb");
|
||||||
if (f) fclose(f);
|
if (f) fclose(f);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
f = fopen(firmbkp, "wb");
|
f = Platform::OpenLocalFile(firmbkp, "wb");
|
||||||
fwrite(Firmware, 1, FirmwareLength, f);
|
fwrite(Firmware, 1, FirmwareLength, f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue