fixed meshadventurer failing build

This commit is contained in:
recrof 2025-09-24 09:04:16 +02:00
parent ea13fa899e
commit f2cff53b0e
3 changed files with 6 additions and 1 deletions

View file

@ -8,7 +8,7 @@ build_flags =
-D MESHADVENTURER -D MESHADVENTURER
-D P_LORA_TX_LED=2 -D P_LORA_TX_LED=2
-D PIN_VBAT_READ=35 -D PIN_VBAT_READ=35
-D PIN_USER_BTN_ANA=39 -D PIN_USER_BTN=39
-D P_LORA_DIO_1=33 -D P_LORA_DIO_1=33
-D P_LORA_NSS=18 -D P_LORA_NSS=18
-D P_LORA_RESET=23 -D P_LORA_RESET=23
@ -28,6 +28,7 @@ build_flags =
-D DISPLAY_CLASS=SSD1306Display -D DISPLAY_CLASS=SSD1306Display
build_src_filter = ${esp32_base.build_src_filter} build_src_filter = ${esp32_base.build_src_filter}
+<../variants/meshadventurer> +<../variants/meshadventurer>
+<helpers/ui/MomentaryButton.cpp>
lib_deps = lib_deps =
${esp32_base.lib_deps} ${esp32_base.lib_deps}
stevemarple/MicroNMEA @ ^2.0.6 stevemarple/MicroNMEA @ ^2.0.6

View file

@ -16,6 +16,7 @@ MASensorManager sensors = MASensorManager(nmea);
#ifdef DISPLAY_CLASS #ifdef DISPLAY_CLASS
DISPLAY_CLASS display; DISPLAY_CLASS display;
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
#endif #endif
bool radio_init() { bool radio_init() {

View file

@ -11,6 +11,7 @@
#include <helpers/sensors/LocationProvider.h> #include <helpers/sensors/LocationProvider.h>
#ifdef DISPLAY_CLASS #ifdef DISPLAY_CLASS
#include <helpers/ui/SSD1306Display.h> #include <helpers/ui/SSD1306Display.h>
#include <helpers/ui/MomentaryButton.h>
#endif #endif
class MASensorManager : public SensorManager { class MASensorManager : public SensorManager {
@ -37,8 +38,10 @@ extern MASensorManager sensors;
#ifdef DISPLAY_CLASS #ifdef DISPLAY_CLASS
extern DISPLAY_CLASS display; extern DISPLAY_CLASS display;
extern MomentaryButton user_btn;
#endif #endif
bool radio_init(); bool radio_init();
uint32_t radio_get_rng_seed(); uint32_t radio_get_rng_seed();
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr); void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);