Skip to content
Snippets Groups Projects
Commit 255cc12c authored by alessandro's avatar alessandro Committed by Beat Küng
Browse files

tap_esc: removed a zero-memset

parent c0efe2db
No related branches found
No related tags found
No related merge requests found
...@@ -364,8 +364,7 @@ void TAP_ESC::subscribe() ...@@ -364,8 +364,7 @@ void TAP_ESC::subscribe()
void TAP_ESC::send_esc_outputs(const uint16_t *pwm, const uint8_t motor_cnt) void TAP_ESC::send_esc_outputs(const uint16_t *pwm, const uint8_t motor_cnt)
{ {
uint16_t rpm[TAP_ESC_MAX_MOTOR_NUM]; uint16_t rpm[TAP_ESC_MAX_MOTOR_NUM] = {};
memset(rpm, 0, sizeof(rpm));
for (uint8_t i = 0; i < motor_cnt; i++) { for (uint8_t i = 0; i < motor_cnt; i++) {
rpm[i] = pwm[i]; rpm[i] = pwm[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment