From 2f8a7f316f2c43e647fdb665221715a167470981 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 25 Jun 2015 21:52:17 +0900 Subject: [PATCH] Notify: enable toshibaLED for NAVIO --- libraries/AP_Notify/AP_Notify.cpp | 3 ++- libraries/AP_Notify/AP_Notify.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Notify/AP_Notify.cpp b/libraries/AP_Notify/AP_Notify.cpp index c11ba7ebc5..0974231439 100644 --- a/libraries/AP_Notify/AP_Notify.cpp +++ b/libraries/AP_Notify/AP_Notify.cpp @@ -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; diff --git a/libraries/AP_Notify/AP_Notify.h b/libraries/AP_Notify/AP_Notify.h index e4ea0d74a5..b60641709d 100644 --- a/libraries/AP_Notify/AP_Notify.h +++ b/libraries/AP_Notify/AP_Notify.h @@ -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