mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-05 14:28:52 +08:00
tap_esc: removed a zero-memset
This commit is contained in:
@@ -364,8 +364,7 @@ void TAP_ESC::subscribe()
|
||||
|
||||
void TAP_ESC::send_esc_outputs(const uint16_t *pwm, const uint8_t motor_cnt)
|
||||
{
|
||||
uint16_t rpm[TAP_ESC_MAX_MOTOR_NUM];
|
||||
memset(rpm, 0, sizeof(rpm));
|
||||
uint16_t rpm[TAP_ESC_MAX_MOTOR_NUM] = {};
|
||||
|
||||
for (uint8_t i = 0; i < motor_cnt; i++) {
|
||||
rpm[i] = pwm[i];
|
||||
|
||||
Reference in New Issue
Block a user