From f60d0596188a8a89eb93a1e6fdb2aed3775811a2 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 9 Nov 2024 18:17:27 +1100 Subject: [PATCH] AP_Vehicle: create and use a singleton for SRV_Channels avoid creation of static pointers to objects held within SRV_Channels --- libraries/AP_Vehicle/AP_Vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Vehicle/AP_Vehicle.cpp b/libraries/AP_Vehicle/AP_Vehicle.cpp index 562ac60607..3005e40d3a 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.cpp +++ b/libraries/AP_Vehicle/AP_Vehicle.cpp @@ -438,7 +438,7 @@ void AP_Vehicle::setup() #if AP_SRV_CHANNELS_ENABLED - SRV_Channels::init(); + AP::srv().init(); #endif // gyro FFT needs to be initialized really late