From 3a6ef05ee82c03cd6be7e4696ac5a96e4ebd4e5c Mon Sep 17 00:00:00 2001 From: "jonathan (mba)" Date: Wed, 17 Dec 2025 21:30:32 -0500 Subject: [PATCH] Disable the blue LED on RAK19003 and 19007 --- platformio.ini | 1 + src/helpers/nrf52/SerialBLEInterface.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/platformio.ini b/platformio.ini index 75d37e869..a0eea4be5 100644 --- a/platformio.ini +++ b/platformio.ini @@ -86,6 +86,7 @@ build_flags = ${arduino_base.build_flags} -D NRF52_PLATFORM -D LFS_NO_ASSERT=1 -D EXTRAFS=1 + -D DISABLE_BLUE_LED=1 lib_deps = ${arduino_base.lib_deps} https://github.com/oltaco/CustomLFS @ 0.2.1 diff --git a/src/helpers/nrf52/SerialBLEInterface.cpp b/src/helpers/nrf52/SerialBLEInterface.cpp index eb1e90bb7..e8fd7edd8 100644 --- a/src/helpers/nrf52/SerialBLEInterface.cpp +++ b/src/helpers/nrf52/SerialBLEInterface.cpp @@ -151,6 +151,10 @@ void SerialBLEInterface::begin(const char* device_name, uint32_t pin_code) { } else { BLE_DEBUG_PRINTLN("Failed to set PPCP: %lu", err_code); } + + #ifdef DISABLE_BLUE_LED + Bluefruit.autoConnLed(false); + #endif Bluefruit.setTxPower(BLE_TX_POWER); Bluefruit.setName(device_name);