From a0fc8cc46a70f21853df35802465e4e69feb4199 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 5 Jul 2022 04:08:56 +0100 Subject: [PATCH] AP_Scheduler: params always use set method --- libraries/AP_Scheduler/AP_Scheduler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Scheduler/AP_Scheduler.cpp b/libraries/AP_Scheduler/AP_Scheduler.cpp index 8c1f0e6500..aa8c62ed1a 100644 --- a/libraries/AP_Scheduler/AP_Scheduler.cpp +++ b/libraries/AP_Scheduler/AP_Scheduler.cpp @@ -450,7 +450,7 @@ void AP_Scheduler::task_info(ExpandingString &str) // dynamically enable statistics collection if (!(_options & uint8_t(Options::RECORD_TASK_INFO))) { - _options |= uint8_t(Options::RECORD_TASK_INFO); + _options.set(_options | uint8_t(Options::RECORD_TASK_INFO)); return; }