Skip to content

Commit

Permalink
Use correct method to read config
Browse files Browse the repository at this point in the history
  • Loading branch information
mmosca committed Nov 8, 2023
1 parent 27b0b49 commit b41b057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/fc/rc_controls.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ throttleStatus_e FAST_CODE NOINLINE calculateThrottleStatus(throttleStatusType_e
value = rcCommand[THROTTLE];
}

bool midThrottle = value > (rcControlsConfig->deadband_low) && value < (rcControlsConfig->deadband_high);
bool midThrottle = value > (reversibleMotorsConfig()->deadband_low) && value < (reversibleMotorsConfig()->deadband_high);
if ((feature(FEATURE_REVERSIBLE_MOTORS) && midThrottle) || (!feature(FEATURE_REVERSIBLE_MOTORS) && (value < rxConfig()->mincheck))) {
return THROTTLE_LOW;
}
Expand Down

0 comments on commit b41b057

Please sign in to comment.