From 11a70536ebf7cb5d54dc38b62324fa61b5990c29 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 26 Feb 2019 08:40:19 +1100 Subject: [PATCH] AP_UAVCAN: correct Notify singleton getter call --- libraries/AP_UAVCAN/AP_UAVCAN_Servers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_UAVCAN/AP_UAVCAN_Servers.cpp b/libraries/AP_UAVCAN/AP_UAVCAN_Servers.cpp index 2fbfb85428..f631c24d42 100644 --- a/libraries/AP_UAVCAN/AP_UAVCAN_Servers.cpp +++ b/libraries/AP_UAVCAN/AP_UAVCAN_Servers.cpp @@ -88,7 +88,7 @@ class AP_UAVCAN_RestartRequestHandler : public uavcan::IRestartRequestHandler { public: bool handleRestartRequest(uavcan::NodeID request_source) override { // swiped from reboot handling in GCS_Common.cpp - AP_Notify *notify = AP_Notify::instance(); + AP_Notify *notify = AP_Notify::get_singleton(); if (notify) { AP_Notify::flags.firmware_update = 1; notify->update();