Skip to content

Commit

Permalink
Tools: make SRV_Channels::cork non-static
Browse files Browse the repository at this point in the history
for symmetry with the push function
  • Loading branch information
peterbarker authored and tridge committed Nov 13, 2024
1 parent cd2c5a1 commit dce4396
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tools/AP_Periph/rc_out.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,11 @@ void AP_Periph_FW::rcout_update()
}
rcout_has_new_data_to_update = false;

auto &srv = AP::srv();
SRV_Channels::calc_pwm();
SRV_Channels::cork();
srv.cork();
SRV_Channels::output_ch_all();
AP::srv().push();
srv.push();
#if HAL_WITH_ESC_TELEM
if (now_ms - last_esc_telem_update_ms >= esc_telem_update_period_ms) {
last_esc_telem_update_ms = now_ms;
Expand Down

0 comments on commit dce4396

Please sign in to comment.