diff --git a/src/drivers/tap_esc/tap_esc.cpp b/src/drivers/tap_esc/tap_esc.cpp index 27100715b3..d3a7a3b390 100644 --- a/src/drivers/tap_esc/tap_esc.cpp +++ b/src/drivers/tap_esc/tap_esc.cpp @@ -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];