From ca517eb259514f004174f35e7d410e837d872785 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 13 Nov 2024 08:09:59 +1100 Subject: [PATCH] ArduSub: make SRV_Channels::cork non-static for symmetry with the push function --- ArduSub/motors.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArduSub/motors.cpp b/ArduSub/motors.cpp index 7bfe51c249..504c6651d9 100644 --- a/ArduSub/motors.cpp +++ b/ArduSub/motors.cpp @@ -18,11 +18,12 @@ void Sub::motors_output() verify_motor_test(); } else { motors.set_interlock(true); - SRV_Channels::cork(); + auto &srv = AP::srv(); + srv.cork(); SRV_Channels::calc_pwm(); SRV_Channels::output_ch_all(); motors.output(); - AP::srv().push(); + srv.push(); } }