tap_esc: removed a zero-memset

This commit is contained in:
alessandro
2018-04-23 12:08:51 +02:00
committed by Beat Küng
parent c0efe2db56
commit 255cc12c48
+1 -2
View File
@@ -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];