AP_Notify: stop using linux board subtype in Notify LED setup

... instead have the board definitions define things like we do for ChibiOS
This commit is contained in:
Peter Barker
2024-07-16 10:11:40 +10:00
committed by Andrew Tridgell
parent 55308e6d79
commit 501d0d8759
10 changed files with 74 additions and 20 deletions
+6
View File
@@ -19,6 +19,10 @@
// not used. The data is sent to the neopixel in 24 'SPI bytes', where each
// spi byte is formatted to appear as a single bit of data to the neopixel.
#include "AP_Notify_config.h"
#if AP_NOTIFY_NAVIGATOR_LED_ENABLED
#include <AP_HAL/AP_HAL.h>
#include "AP_Notify/AP_Notify.h"
#include "NavigatorLED.h"
@@ -79,3 +83,5 @@ void NavigatorLED::_setup_data(uint8_t red, uint8_t green, uint8_t blue)
_data[16 + i] = (blue & (1<<(7-i))) ? LED_T1 : LED_T0;
}
}
#endif // AP_NOTIFY_NAVIGATOR_LED_ENABLED