Browse Source

Notify: remove ToshibaLED support from APM

This saves about 1k of precious flash
mission-4.1.18
Randy Mackay 11 years ago
parent
commit
d6890ce878
  1. 6
      libraries/AP_Notify/AP_Notify.cpp
  2. 1
      libraries/AP_Notify/AP_Notify.h

6
libraries/AP_Notify/AP_Notify.cpp

@ -25,9 +25,9 @@ void AP_Notify::init(bool enable_external_leds) @@ -25,9 +25,9 @@ void AP_Notify::init(bool enable_external_leds)
AP_Notify::flags.external_leds = enable_external_leds;
boardled.init();
toshibaled.init();
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
toshibaled.init();
tonealarm.init();
#endif
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2
@ -35,6 +35,7 @@ void AP_Notify::init(bool enable_external_leds) @@ -35,6 +35,7 @@ void AP_Notify::init(bool enable_external_leds)
buzzer.init();
#endif
#if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
toshibaled.init();
externalled.init();
buzzer.init();
#endif
@ -44,9 +45,9 @@ void AP_Notify::init(bool enable_external_leds) @@ -44,9 +45,9 @@ void AP_Notify::init(bool enable_external_leds)
void AP_Notify::update(void)
{
boardled.update();
toshibaled.update();
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
toshibaled.update();
tonealarm.update();
#endif
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2
@ -54,6 +55,7 @@ void AP_Notify::update(void) @@ -54,6 +55,7 @@ void AP_Notify::update(void)
buzzer.update();
#endif
#if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
toshibaled.update();
externalled.update();
buzzer.update();
#endif

1
libraries/AP_Notify/AP_Notify.h

@ -68,7 +68,6 @@ private: @@ -68,7 +68,6 @@ private:
ToshibaLED_PX4 toshibaled;
ToneAlarm_PX4 tonealarm;
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2
ToshibaLED_I2C toshibaled;
ExternalLED externalled;
Buzzer buzzer;
#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN

Loading…
Cancel
Save