From 4cfdb0ef7c648bab05f2916241e3243cf86b967f Mon Sep 17 00:00:00 2001 From: Florent Date: Mon, 10 Mar 2025 22:42:52 +0100 Subject: [PATCH] better handling of BTN_USER_PRESSED definition --- examples/companion_radio/UITask.cpp | 4 ++++ platformio.ini | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/companion_radio/UITask.cpp b/examples/companion_radio/UITask.cpp index f4981984..df09e269 100644 --- a/examples/companion_radio/UITask.cpp +++ b/examples/companion_radio/UITask.cpp @@ -4,6 +4,10 @@ #define AUTO_OFF_MILLIS 15000 // 15 seconds +#ifndef USER_BTN_PRESSED +#define USER_BTN_PRESSED LOW +#endif + // 'meshcore', 128x13px static const uint8_t meshcore_logo [] PROGMEM = { 0x3c, 0x01, 0xe3, 0xff, 0xc7, 0xff, 0x8f, 0x03, 0x87, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, diff --git a/platformio.ini b/platformio.ini index a8bdf219..f6221c51 100644 --- a/platformio.ini +++ b/platformio.ini @@ -22,7 +22,6 @@ build_flags = -w -DNDEBUG -DRADIOLIB_STATIC_ONLY=1 -DRADIOLIB_GODMODE=1 -D LORA_FREQ=867.5 -D LORA_BW=250 -D LORA_SF=10 - -D USER_BTN_PRESSED=LOW build_src_filter = +<*.cpp> +