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 2eb177a393..efa9c4253a 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 @@ -247,7 +247,7 @@ void AP_LoggerTest_AllTypes::setup(void) { hal.console->printf("Logger All Types 1.0\n"); - log_bitmask = (uint32_t)-1; + log_bitmask.set((uint32_t)-1); logger.Init(log_structure, ARRAY_SIZE(log_structure)); logger.set_vehicle_armed(true); logger.Write_Message("AP_Logger Test"); 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 f87b8ffe8a..fcb6aeb95a 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 @@ -52,7 +52,7 @@ void AP_LoggerTest::setup(void) { hal.console->printf("Logger Log Test 1.0\n"); - log_bitmask = (uint32_t)-1; + log_bitmask.set((uint32_t)-1); logger.Init(log_structure, ARRAY_SIZE(log_structure)); logger.set_vehicle_armed(true); logger.Write_Message("AP_Logger Test");