From aae431e4d5d688c7ca577e3dc72c0c9686f567d8 Mon Sep 17 00:00:00 2001 From: Eric Katzfey <53063038+katzfey@users.noreply.github.com> Date: Wed, 25 Jan 2023 16:35:56 -0800 Subject: [PATCH] Removed unused variables in LED driver that were causing fatal build errors on Qurt platform (#21007) --- boards/modalai/voxl2-slpi/default.px4board | 1 + src/drivers/lights/rgbled_ncp5623c/rgbled_ncp5623c.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/boards/modalai/voxl2-slpi/default.px4board b/boards/modalai/voxl2-slpi/default.px4board index ad8b346e67..2d2c5f5b3a 100644 --- a/boards/modalai/voxl2-slpi/default.px4board +++ b/boards/modalai/voxl2-slpi/default.px4board @@ -3,6 +3,7 @@ CONFIG_BOARD_TOOLCHAIN="qurt" CONFIG_DRIVERS_ACTUATORS_MODAL_IO=y CONFIG_DRIVERS_POWER_MONITOR_VOXLPM=y CONFIG_DRIVERS_QSHELL_QURT=y +CONFIG_DRIVERS_LIGHTS_RGBLED_NCP5623C=y CONFIG_MODULES_EKF2=y CONFIG_MODULES_LAND_DETECTOR=y CONFIG_MODULES_MC_ATT_CONTROL=y diff --git a/src/drivers/lights/rgbled_ncp5623c/rgbled_ncp5623c.cpp b/src/drivers/lights/rgbled_ncp5623c/rgbled_ncp5623c.cpp index 7b1f62b563..78279c6081 100755 --- a/src/drivers/lights/rgbled_ncp5623c/rgbled_ncp5623c.cpp +++ b/src/drivers/lights/rgbled_ncp5623c/rgbled_ncp5623c.cpp @@ -87,8 +87,6 @@ private: uint8_t _g{0}; uint8_t _b{0}; volatile bool _running{false}; - volatile bool _should_run{true}; - bool _leds_enabled{true}; LedController _led_controller;