1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 12:25:13 +03:00
The code was checking the wrong variable for usage flags, after refactoring to inform configurator of timers
This commit is contained in:
Marcelo Bezerra 2023-09-10 18:33:38 +02:00
parent dae2b82f65
commit ac1cc38f03

View file

@ -57,7 +57,7 @@ let OutputMappingCollection = function () {
timerMap[i] = null; timerMap[i] = null;
if (isMR) { 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--; servosToGo--;
timerMap[i] = OUTPUT_TYPE_SERVO; timerMap[i] = OUTPUT_TYPE_SERVO;
} else if (motorsToGo > 0 && bit_check(data[i]['usageFlags'], TIM_USE_MC_MOTOR)) { } else if (motorsToGo > 0 && bit_check(data[i]['usageFlags'], TIM_USE_MC_MOTOR)) {