AP_Notify: make explicit define for notify's NCP5623

This commit is contained in:
Peter Barker 2022-11-02 19:55:25 +11:00 committed by Andrew Tridgell
parent 6e6fb70541
commit 6bb84e5da0
2 changed files with 5 additions and 1 deletions

View File

@ -295,7 +295,7 @@ void AP_Notify::add_backends(void)
case Notify_LED_ToshibaLED_I2C_External:
ADD_BACKEND(new ToshibaLED_I2C(TOSHIBA_LED_I2C_BUS_EXTERNAL));
break;
#if !HAL_MINIMIZE_FEATURES
#if AP_NOTIFY_NCP5623_ENABLED
case Notify_LED_NCP5623_I2C_External:
FOREACH_I2C_EXTERNAL(b) {
ADD_BACKEND(new NCP5623(b));

View File

@ -12,3 +12,7 @@
#ifndef AP_NOTIFY_MAVLINK_LED_CONTROL_SUPPORT_ENABLED
#define AP_NOTIFY_MAVLINK_LED_CONTROL_SUPPORT_ENABLED HAL_GCS_ENABLED
#endif
#ifndef AP_NOTIFY_NCP5623_ENABLED
#define AP_NOTIFY_NCP5623_ENABLED 1
#endif