From eee0f028ba305965bf22a66ac713a770978953c9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 23 Apr 2020 11:30:41 +1000 Subject: [PATCH] AP_Logger: fix examples Having a valid AP_Scheduler is now a requirement --- .../examples/AP_Logger_AllTypes/AP_Logger_AllTypes.cpp | 2 ++ libraries/AP_Logger/examples/AP_Logger_test/AP_Logger_test.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libraries/AP_Logger/examples/AP_Logger_AllTypes/AP_Logger_AllTypes.cpp b/libraries/AP_Logger/examples/AP_Logger_AllTypes/AP_Logger_AllTypes.cpp index ab355467c0..2eb177a393 100644 --- a/libraries/AP_Logger/examples/AP_Logger_AllTypes/AP_Logger_AllTypes.cpp +++ b/libraries/AP_Logger/examples/AP_Logger_AllTypes/AP_Logger_AllTypes.cpp @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -106,6 +107,7 @@ private: AP_Int32 log_bitmask; AP_Logger logger{log_bitmask}; + AP_Scheduler scheduler; void Log_Write_TypeMessages(); void Log_Write_TypeMessages_Log_Write(); diff --git a/libraries/AP_Logger/examples/AP_Logger_test/AP_Logger_test.cpp b/libraries/AP_Logger/examples/AP_Logger_test/AP_Logger_test.cpp index 2661e6277d..100104b08a 100644 --- a/libraries/AP_Logger/examples/AP_Logger_test/AP_Logger_test.cpp +++ b/libraries/AP_Logger/examples/AP_Logger_test/AP_Logger_test.cpp @@ -4,6 +4,7 @@ */ #include +#include #include #include #include @@ -41,6 +42,7 @@ private: AP_Int32 log_bitmask; AP_Logger logger{log_bitmask}; + AP_Scheduler scheduler; };