Fix conversion of input line name, curve names, and write radio.bin to disk early

Resolves #264
Resolves #255
This commit is contained in:
Raphael Coeffic
2021-06-19 16:25:20 +02:00
parent 82f60cdc81
commit afe7c13b8b
2 changed files with 4 additions and 2 deletions
@@ -71,6 +71,8 @@ void convertRadioData(int version)
#if STORAGE_CONVERSIONS < 220
if (version == 219) {
convertRadioData_219_to_220(g_eeGeneral);
storageDirty(EE_GENERAL);
storageCheck(true);
}
#endif
converted++;
@@ -109,7 +109,7 @@ void convertModelData_219_to_220(ModelData &model)
convertToStr(model.header.name, LEN_MODEL_NAME_219);
for (uint8_t i=0; i<MAX_TIMERS_219; i++) {
//TODO: convert to new timers v220
// convert to new timers v220
TimerData& timer = newModel.timers[i];
convertToStr(timer.name, LEN_TIMER_NAME_219);
@@ -153,7 +153,7 @@ void convertModelData_219_to_220(ModelData &model)
// CurveHeader.name
for (uint8_t i=0; i<MAX_CURVES_219; ++i) {
convertToStr(model.expoData[i].name, LEN_CURVE_NAME_219);
convertToStr(model.curves[i].name, LEN_CURVE_NAME_219);
}
// CustomFunctionData::play.name