From 3a9410b5d073bec3d6db4644ec03fe7a6409b162 Mon Sep 17 00:00:00 2001 From: Rafael Caetano Date: Mon, 13 May 2019 23:05:50 +0100 Subject: [PATCH] Firmware backup writing now uses OpenLocalFile --- src/SPI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SPI.cpp b/src/SPI.cpp index e550abd9..759bbd90 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); }