[Companion] Old EEPROM support removed

This commit is contained in:
Bertrand Songis
2016-11-23 16:40:47 +01:00
parent 9590b5f00e
commit 5f9737fc70
73 changed files with 1309 additions and 9277 deletions
+2 -2
View File
@@ -152,7 +152,7 @@ void saveModel(ModelData & m, model & xm)
phases xphases;
phases::phase_sequence & phases_sequence (xphases.phase());
for (int i=0; i<C9X_MAX_FLIGHT_MODES; i++) {
for (int i=0; i<CPN_MAX_FLIGHT_MODES; i++) {
FlightModeData & p = m.flightModeData[i];
if (i == 0 || p.swtch.type!=SWITCH_TYPE_NONE) {
TrimType xtrim[4];
@@ -192,7 +192,7 @@ bool XmlInterface::save(RadioData &radioData)
// the models
models xml_models;
models::model_sequence & model_sequence (xml_models.model());
for (int i=0; i<C9X_MAX_MODELS; i++) {
for (int i=0; i<CPN_MAX_MODELS; i++) {
ModelData & m = radioData.models[i];
if (m.used) {
model xm(m.name);