AP_Notify: use chibios_hwdef to define NOTIFY_LED_OVERRIDE_DEFAULT

This commit is contained in:
Peter Barker 2023-05-17 10:32:36 +10:00 committed by Peter Barker
parent 0c7a16b03d
commit 3d05d8c0dd

View File

@ -130,12 +130,8 @@ AP_Notify *AP_Notify::_singleton;
#endif
#ifndef NOTIFY_LED_OVERRIDE_DEFAULT
#ifdef HAL_BUILD_AP_PERIPH
#define NOTIFY_LED_OVERRIDE_DEFAULT 1 // rgb_source_t::mavlink
#else
#define NOTIFY_LED_OVERRIDE_DEFAULT 0 // rgb_source_t::standard
#endif
#endif
#ifndef NOTIFY_LED_LEN_DEFAULT
#define NOTIFY_LED_LEN_DEFAULT 1