pwm_out_sim: cleanup, avoid unnecessary & incorrect init of _control_subs

These need to be set to -1.
This commit is contained in:
Beat Küng
2018-07-23 17:36:49 +02:00
committed by Lorenz Meier
parent be3af59c76
commit 442d4410ca
+2 -4
View File
@@ -31,8 +31,7 @@
*
****************************************************************************/
#ifndef DRIVERS_PWM_OUT_SIM_PWMSIM_HPP_
#define DRIVERS_PWM_OUT_SIM_PWMSIM_HPP_
#pragma once
#include <string.h>
@@ -104,7 +103,7 @@ private:
int _update_rate{400};
int _current_update_rate{0};
int _control_subs[actuator_controls_s::NUM_ACTUATOR_CONTROL_GROUPS] {};
int _control_subs[actuator_controls_s::NUM_ACTUATOR_CONTROL_GROUPS];
px4_pollfd_struct_t _poll_fds[actuator_controls_s::NUM_ACTUATOR_CONTROL_GROUPS] {};
unsigned _poll_fds_num{0};
@@ -142,4 +141,3 @@ private:
void update_params();
};
#endif /* DRIVERS_PWM_OUT_SIM_PWMSIM_HPP_ */