From ac1cc38f0314de01d027521421f2adf41edaee3a Mon Sep 17 00:00:00 2001 From: Marcelo Bezerra <23555060+mmosca@users.noreply.github.com> Date: Sun, 10 Sep 2023 18:33:38 +0200 Subject: [PATCH] Fix #1821 The code was checking the wrong variable for usage flags, after refactoring to inform configurator of timers --- js/outputMapping.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/outputMapping.js b/js/outputMapping.js index e318be72..02c8c07e 100644 --- a/js/outputMapping.js +++ b/js/outputMapping.js @@ -57,7 +57,7 @@ let OutputMappingCollection = function () { timerMap[i] = null; if (isMR) { - if (servosToGo > 0 && bit_check(data[i], TIM_USE_MC_SERVO)) { + if (servosToGo > 0 && bit_check(data[i]['usageFlags'], TIM_USE_MC_SERVO)) { servosToGo--; timerMap[i] = OUTPUT_TYPE_SERVO; } else if (motorsToGo > 0 && bit_check(data[i]['usageFlags'], TIM_USE_MC_MOTOR)) {