mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 07:43:35 +08:00
changed parameters to int32_t to prevent stack smashing
This commit is contained in:
@@ -75,7 +75,7 @@ static int _uart_fd = -1;
|
||||
int _pwm_fd = -1;
|
||||
static bool _flow_control_enabled = false;
|
||||
int _rc_sub = -1;
|
||||
uint16_t _pwm_disarmed;
|
||||
int32_t _pwm_disarmed;
|
||||
|
||||
hrt_abstime _last_actuator_controls_received = 0;
|
||||
|
||||
|
||||
@@ -90,9 +90,9 @@ input_rc_s _rc;
|
||||
pwm_limit_t _pwm_limit;
|
||||
|
||||
// esc parameters
|
||||
uint16_t _pwm_disarmed;
|
||||
uint16_t _pwm_min;
|
||||
uint16_t _pwm_max;
|
||||
int32_t _pwm_disarmed;
|
||||
int32_t _pwm_min;
|
||||
int32_t _pwm_max;
|
||||
|
||||
MultirotorMixer *_mixer = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user