SD card version warning

This commit is contained in:
rotorman
2021-05-26 23:09:19 +02:00
committed by Raphael Coeffic
parent afd0a4541b
commit 03efcdf22c
5 changed files with 5 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
2.4V0037
+1
View File
@@ -0,0 +1 @@
2.4V0037
@@ -0,0 +1 @@
2.4V0037
@@ -0,0 +1 @@
2.4V0037
+1 -1
View File
@@ -665,7 +665,7 @@ void checkSDVersion()
char error[sizeof(TR_WRONG_SDCARDVERSION)+ sizeof(version)];
strAppend(strAppend(error, STR_WRONG_SDCARDVERSION, sizeof(TR_WRONG_SDCARDVERSION)), REQUIRED_SDCARD_VERSION, sizeof(REQUIRED_SDCARD_VERSION));
FRESULT result = f_open(&versionFile, "/opentx.sdcard.version", FA_OPEN_EXISTING | FA_READ);
FRESULT result = f_open(&versionFile, "/edgetx.sdcard.version", FA_OPEN_EXISTING | FA_READ);
if (result == FR_OK) {
if (f_read(&versionFile, &version, sizeof(version), &read) != FR_OK ||
read != sizeof(version) ||