Merge branch 'RGBLED' of github.com:garethhcoleman/firmware into RGBLED

This commit is contained in:
Gareth Coleman 2024-04-22 14:43:07 +01:00
commit 378a2d723e
4 changed files with 13 additions and 5 deletions

View File

@ -2,14 +2,17 @@
extends = esp32_base extends = esp32_base
build_src_filter = build_src_filter =
${esp32_base.build_src_filter} -<nimble/> -<mesh/raspihttp> ${esp32_base.build_src_filter} - <libpax/> -<nimble/> -<mesh/raspihttp>
monitor_speed = 115200 monitor_speed = 115200
build_flags = build_flags =
${esp32_base.build_flags} ${esp32_base.build_flags}
-DHAS_BLUETOOTH=0 -DHAS_BLUETOOTH=0
-DMESHTASTIC_EXCLUDE_PAXCOUNTER
-DMESHTASTIC_EXCLUDE_BLUETOOTH
lib_ignore = lib_ignore =
${esp32_base.lib_ignore} ${esp32_base.lib_ignore}
NimBLE-Arduino NimBLE-Arduino
libpax

View File

@ -179,6 +179,11 @@ const char *getDeviceName()
static int32_t ledBlinker() static int32_t ledBlinker()
{ {
// Still set up the blinking (heartbeat) interval but skip code path below, so LED will blink if
// config.device.led_heartbeat_disabled is changed
if (config.device.led_heartbeat_disabled)
return 1000;
static bool ledOn; static bool ledOn;
ledOn ^= 1; ledOn ^= 1;
@ -1003,4 +1008,4 @@ void loop()
mainDelay.delay(delayMsec); mainDelay.delay(delayMsec);
} }
// if (didWake) LOG_DEBUG("wake!\n"); // if (didWake) LOG_DEBUG("wake!\n");
} }

View File

@ -1,5 +1,5 @@
#include "configuration.h" #include "configuration.h"
#if defined(ARCH_ESP32) #if defined(ARCH_ESP32) && !MESHTASTIC_EXCLUDE_PAXCOUNTER
#include "Default.h" #include "Default.h"
#include "MeshService.h" #include "MeshService.h"
#include "PaxcounterModule.h" #include "PaxcounterModule.h"

View File

@ -211,7 +211,7 @@ void doDeepSleep(uint32_t msecToWake, bool skipPreflight = false)
// esp_wifi_stop(); // esp_wifi_stop();
waitEnterSleep(skipPreflight); waitEnterSleep(skipPreflight);
#ifdef ARCH_ESP32 #if defined(ARCH_ESP32) && !MESHTASTIC_EXCLUDE_BLUETOOTH
// Full shutdown of bluetooth hardware // Full shutdown of bluetooth hardware
if (nimbleBluetooth) if (nimbleBluetooth)
nimbleBluetooth->deinit(); nimbleBluetooth->deinit();