mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 00:03:35 +08:00
update according to pull request review comments
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************/
|
||||
#ifdef __DF_BBBLUE
|
||||
#ifdef __PX4_POSIX_BBBLUE
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
@@ -79,4 +79,4 @@ int BBBlueRcPWMOut::send_output_pwm(const uint16_t *pwm, int num_outputs)
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif // __DF_BBBLUE
|
||||
#endif // __PX4_POSIX_BBBLUE
|
||||
|
||||
@@ -42,8 +42,7 @@ int RcInput::init()
|
||||
/**
|
||||
* initialize the data of each channel
|
||||
*/
|
||||
for (i = 0; i < input_rc_s::RC_INPUT_MAX_CHANNELS && i < 16; ++i) {
|
||||
//_data.values defined as int[16] and RC_INPUT_MAX_CHANNELS (=18) > 16
|
||||
for (i = 0; i < input_rc_s::RC_INPUT_MAX_CHANNELS; ++i) {
|
||||
_data.values[i] = UINT16_MAX;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user