diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/SPI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SPI.cpp b/src/SPI.cpp index e550abd..759bbd9 100644 --- a/src/SPI.cpp +++ b/src/SPI.cpp @@ -130,11 +130,11 @@ void Reset() // take a backup const char* firmbkp = "firmware.bin.bak"; - f = fopen(firmbkp, "rb"); + f = Platform::OpenLocalFile(firmbkp, "rb"); if (f) fclose(f); else { - f = fopen(firmbkp, "wb"); + f = Platform::OpenLocalFile(firmbkp, "wb"); fwrite(Firmware, 1, FirmwareLength, f); fclose(f); } |