Issue #741 fixed - a==x added in logical switches functions

This commit is contained in:
Bertrand Songis
2014-02-24 07:30:59 +01:00
parent c98e718e16
commit 2a8abd08da
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;