Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/helpers/nrf52/SerialBLEInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down