Notify: enable toshibaLED for NAVIO

This commit is contained in:
Randy Mackay 2015-06-25 21:52:17 +09:00
parent 402f46c56f
commit 2f8a7f316f
2 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,8 @@ struct AP_Notify::notify_events_type AP_Notify::events;
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO
AP_BoardLED boardled;
NavioLED_I2C navioled;
NotifyDevice *AP_Notify::_devices[CONFIG_NOTIFY_DEVICES_COUNT] = {&boardled, &navioled};
ToshibaLED_I2C toshibaled;
NotifyDevice *AP_Notify::_devices[CONFIG_NOTIFY_DEVICES_COUNT] = {&boardled, &navioled, &toshibaled};
#else
AP_BoardLED boardled;
ToshibaLED_I2C toshibaled;

View File

@ -44,7 +44,7 @@
#define CONFIG_NOTIFY_DEVICES_COUNT 4
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO
#define CONFIG_NOTIFY_DEVICES_COUNT 2
#define CONFIG_NOTIFY_DEVICES_COUNT 3
#else
#define CONFIG_NOTIFY_DEVICES_COUNT 3
#endif