From cd2c5a1697f33cf5055354161daacac0a965feb5 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 13 Nov 2024 08:10:00 +1100 Subject: [PATCH] Blimp: make SRV_Channels::cork non-static for symmetry with the push function --- Blimp/motors.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Blimp/motors.cpp b/Blimp/motors.cpp index c2993c99bd..90fb3308a9 100644 --- a/Blimp/motors.cpp +++ b/Blimp/motors.cpp @@ -78,8 +78,10 @@ void Blimp::motors_output() // output any servo channels SRV_Channels::calc_pwm(); + auto &srv = AP::srv(); + // cork now, so that all channel outputs happen at once - SRV_Channels::cork(); + srv.cork(); // update output on any aux channels, for manual passthru SRV_Channels::output_ch_all(); @@ -88,5 +90,5 @@ void Blimp::motors_output() motors->output(); // push all channels - AP::srv().push(); + srv.push(); }