Skip to content

Commit

Permalink
AP_Periph: fixed macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Aug 26, 2023
1 parent 2a266ce commit dbe7709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tools/AP_Periph/rc_out.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ void AP_Periph_FW::rcout_update()
const bool has_esc_rawcommand_timed_out = esc_timeout_ms != 0 && ((now_ms - last_esc_raw_command_ms) >= esc_timeout_ms);
if (last_esc_num_channels > 0 && has_esc_rawcommand_timed_out) {
// If we've seen ESCs previously, and a timeout has occurred, then zero the outputs
int16_t esc_output[last_esc_num_channels] {};
int16_t esc_output[last_esc_num_channels];
memset(esc_output, 0, sizeof(esc_output));
rcout_esc(esc_output, last_esc_num_channels);

// register that the output has been changed
Expand Down

0 comments on commit dbe7709

Please sign in to comment.