Skip to content

Commit 7311c16

Browse files
committed
Don't delete OLA_ settings.txt
1 parent c3858a7 commit 7311c16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Firmware/OpenLog_Artemis/zmodem.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ void sdCardMenu(int numberOfSeconds)
320320
size_t fsize = 30;
321321
fout.getName(fname, fsize);
322322
fout.close();
323-
sd.remove(fname);
323+
if ((str_cmp_P(fname, PSTR("OLA_settings.txt"))) && (str_cmp_P(fname, PSTR("OLA_deviceSettings.txt"))))
324+
sd.remove(fname);
324325
}
325326
else
326327
{

0 commit comments

Comments
 (0)