Merge branch 'master' into RGBLED

pull/3647/head
Gareth Coleman 2024-04-22 14:42:14 +01:00 zatwierdzone przez GitHub
commit 125add9792
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
4 zmienionych plików z 13 dodań i 5 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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;

Wyświetl plik

@ -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"

Wyświetl plik

@ -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();