changed parameters to int32_t to prevent stack smashing

This commit is contained in:
Nicolas de Palezieux
2016-04-25 16:16:04 +02:00
parent b1c6a2c7ab
commit 9199c5ec17
2 changed files with 4 additions and 4 deletions
@@ -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;
+3 -3
View File
@@ -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;