Skip to content

Commit

Permalink
Fix #1821
Browse files Browse the repository at this point in the history
The code was checking the wrong variable for usage flags, after refactoring to inform configurator of timers
  • Loading branch information
mmosca committed Sep 10, 2023
1 parent dae2b82 commit ac1cc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/outputMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit ac1cc38

Please sign in to comment.