Issue #650 fixed - 0.1s precision in durations/delays for logical

switches
This commit is contained in:
Bertrand Songis
2014-02-24 07:45:37 +01:00
parent c98e718e16
commit 56d167e45f
6 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -470,8 +470,8 @@ void ConvertModel_215_to_216(ModelData &model)
if (sw.func >= LS_FUNC_STAY) sw.func += 1;
sw.v1 = oldModel.customSw[i].v1;
sw.v2 = oldModel.customSw[i].v2;
sw.delay = oldModel.customSw[i].delay;
sw.duration = oldModel.customSw[i].duration;
sw.delay = oldModel.customSw[i].delay * 5;
sw.duration = oldModel.customSw[i].duration * 5;
sw.andsw = ConvertSwitch_215_to_216(oldModel.customSw[i].andsw);
#if defined(PCBTARANIS)
uint8_t cstate = cswFamily(sw.func);