SD card version warning
This commit is contained in:
committed by
Raphael Coeffic
parent
afd0a4541b
commit
03efcdf22c
@@ -0,0 +1 @@
|
||||
2.4V0037
|
||||
@@ -0,0 +1 @@
|
||||
2.4V0037
|
||||
@@ -0,0 +1 @@
|
||||
2.4V0037
|
||||
@@ -0,0 +1 @@
|
||||
2.4V0037
|
||||
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user