RCOutput: initialize _esc_pwm_min and _esc_pwm_max

Further protection from potential dangerous behavior when these do not
get initialized for some reason.
This commit is contained in:
Bob Long 2024-08-06 09:21:18 +10:00 committed by Andrew Tridgell
parent a5c8b03925
commit 4a1e4ebcd6
1 changed files with 2 additions and 2 deletions

View File

@ -422,6 +422,6 @@ protected:
void append_to_banner(char banner_msg[], uint8_t banner_msg_len, output_mode out_mode, uint8_t low_ch, uint8_t high_ch) const;
const char* get_output_mode_string(enum output_mode out_mode) const;
uint16_t _esc_pwm_min;
uint16_t _esc_pwm_max;
uint16_t _esc_pwm_min = 1000;
uint16_t _esc_pwm_max = 2000;
};