Merge pull request #745 from opentx/bsongis/Issue650_precise_logical_switches_delays_durations

Issue #650 fixed - 0.1s precision in durations/delays for logical
This commit is contained in:
Andre Bernet
2014-02-26 11:26:52 +01:00
8 changed files with 31 additions and 28 deletions
+2 -2
View File
@@ -471,8 +471,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);