From b024ff8ea47a1afdea03be5da8ec657d628c5fee Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 30 Sep 2020 11:28:21 +1000 Subject: [PATCH] AP_Notify: remove unused variables --- libraries/AP_Notify/AP_BoardLED.h | 3 +++ libraries/AP_Notify/AP_BoardLED2.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/libraries/AP_Notify/AP_BoardLED.h b/libraries/AP_Notify/AP_BoardLED.h index 0baa335c60..c812b6316b 100644 --- a/libraries/AP_Notify/AP_BoardLED.h +++ b/libraries/AP_Notify/AP_BoardLED.h @@ -29,6 +29,9 @@ public: void update(void) override; private: +#if (defined(HAL_GPIO_A_LED_PIN) && defined(HAL_GPIO_B_LED_PIN) && \ + defined(HAL_GPIO_C_LED_PIN)) // counter incremented at 50Hz uint8_t _counter; +#endif }; diff --git a/libraries/AP_Notify/AP_BoardLED2.h b/libraries/AP_Notify/AP_BoardLED2.h index 40273ba6c7..e440aa4a05 100644 --- a/libraries/AP_Notify/AP_BoardLED2.h +++ b/libraries/AP_Notify/AP_BoardLED2.h @@ -33,7 +33,9 @@ public: private: // counter incremented at 50Hz uint8_t _counter; +#if defined(HAL_GPIO_A_LED_PIN) && defined(HAL_GPIO_B_LED_PIN) uint16_t _sat_cnt; uint8_t save_trim_counter; uint8_t arm_counter = 0; +#endif };