aboutsummaryrefslogtreecommitdiff
path: root/src/SPI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SPI.cpp')
-rw-r--r--src/SPI.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SPI.cpp b/src/SPI.cpp
index 6224338..759bbd9 100644
--- a/src/SPI.cpp
+++ b/src/SPI.cpp
@@ -129,12 +129,12 @@ void Reset()
fclose(f);
// take a backup
- char* firmbkp = "firmware.bin.bak";
- f = fopen(firmbkp, "rb");
+ const char* firmbkp = "firmware.bin.bak";
+ 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);
}