diff --git a/libraries/AP_Notify/AP_Notify.cpp b/libraries/AP_Notify/AP_Notify.cpp index cbbb3c9aa0..fc44486b9e 100644 --- a/libraries/AP_Notify/AP_Notify.cpp +++ b/libraries/AP_Notify/AP_Notify.cpp @@ -94,7 +94,7 @@ AP_Notify *AP_Notify::_singleton; #endif // BUILD_DEFAULT_LED_TYPE #ifndef BUZZER_ENABLE_DEFAULT -#if HAL_ENABLE_LIBUAVCAN_DRIVERS +#if HAL_CANMANAGER_ENABLED // Enable Buzzer messages over UAVCAN #define BUZZER_ENABLE_DEFAULT (Notify_Buzz_Builtin | Notify_Buzz_UAVCAN) #else @@ -320,9 +320,9 @@ void AP_Notify::add_backends(void) #endif break; case Notify_LED_UAVCAN: -#if HAL_ENABLE_LIBUAVCAN_DRIVERS +#if HAL_CANMANAGER_ENABLED ADD_BACKEND(new UAVCAN_RGB_LED(0)); -#endif // HAL_ENABLE_LIBUAVCAN_DRIVERS +#endif // HAL_CANMANAGER_ENABLED break; case Notify_LED_Scripting: diff --git a/libraries/AP_Notify/MMLPlayer.cpp b/libraries/AP_Notify/MMLPlayer.cpp index 2d028d2b39..a48fc1f127 100644 --- a/libraries/AP_Notify/MMLPlayer.cpp +++ b/libraries/AP_Notify/MMLPlayer.cpp @@ -6,7 +6,7 @@ #include #include -#if HAL_ENABLE_LIBUAVCAN_DRIVERS +#if HAL_CANMANAGER_ENABLED #include #include #endif @@ -64,7 +64,7 @@ void MMLPlayer::start_note(float duration, float frequency, float volume) _note_duration_us = duration*1e6; hal.util->toneAlarm_set_buzzer_tone(frequency, volume, _note_duration_us/1000U); -#if HAL_ENABLE_LIBUAVCAN_DRIVERS +#if HAL_CANMANAGER_ENABLED // support CAN buzzers too uint8_t can_num_drivers = AP::can().get_num_drivers(); diff --git a/libraries/AP_Notify/UAVCAN_RGB_LED.cpp b/libraries/AP_Notify/UAVCAN_RGB_LED.cpp index 5b705235a7..3d21c09537 100644 --- a/libraries/AP_Notify/UAVCAN_RGB_LED.cpp +++ b/libraries/AP_Notify/UAVCAN_RGB_LED.cpp @@ -17,7 +17,7 @@ #include #include -#if HAL_ENABLE_LIBUAVCAN_DRIVERS +#if HAL_CANMANAGER_ENABLED #include "UAVCAN_RGB_LED.h" #include