Fixes related to storage conversions removal (#2074)

This commit is contained in:
Raphael Coeffic
2022-06-21 08:02:10 +02:00
committed by GitHub
parent 2e9fde7ed4
commit 0ba688c25f
3 changed files with 12 additions and 6 deletions
+4
View File
@@ -107,6 +107,7 @@ const char * loadRadioSettings()
{
FILINFO fno;
if (f_stat(RADIO_SETTINGS_YAML_PATH, &fno) != FR_OK) {
#if STORAGE_CONVERSIONS < 221
#if defined(STORAGE_MODELSLIST)
uint8_t version;
const char* error = loadFileBin(RADIO_SETTINGS_PATH, nullptr, 0, &version);
@@ -126,6 +127,9 @@ const char * loadRadioSettings()
eeConvert(versions[0]);
#else
#error "Unsupported conversion format"
#endif
#else
return "no radio settings";
#endif
}