Merge pull request #744 from opentx/bsongis/Issue741_a_equals_x_in_logical_switches

Issue #741 fixed - a==x added in logical switches functions
This commit is contained in:
Andre Bernet
2014-02-25 21:07:07 +01:00
18 changed files with 90 additions and 15 deletions
+1
View File
@@ -466,6 +466,7 @@ void ConvertModel_215_to_216(ModelData &model)
for (uint8_t i=0; i<32; i++) {
LogicalSwitchData & sw = g_model.customSw[i];
sw.func = oldModel.customSw[i].func;
if (sw.func >= LS_FUNC_VEQUAL) sw.func += 1;
if (sw.func >= LS_FUNC_RANGE) sw.func += 1;
if (sw.func >= LS_FUNC_STAY) sw.func += 1;
sw.v1 = oldModel.customSw[i].v1;