From 0a094e4d01d5319584ea5f6cda7d19d98fd8da5f Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Sun, 15 Dec 2024 12:43:09 +1100 Subject: [PATCH] Define BUTTON_PIN as -1 for RP2040-lora The previous approach of undef'ing meant that it was impossible for users to change the button pin in the apps. Fixes https://github.com/meshtastic/firmware/issues/5566 --- variants/rp2040-lora/variant.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variants/rp2040-lora/variant.h b/variants/rp2040-lora/variant.h index f1826605f5..92b0674573 100644 --- a/variants/rp2040-lora/variant.h +++ b/variants/rp2040-lora/variant.h @@ -15,7 +15,7 @@ // rxd = 9 #define EXT_NOTIFY_OUT 22 -#undef BUTTON_PIN // Pin 17 used for antenna switching via DIO4 +#define BUTTON_PIN -1 // Pin 17 used for antenna switching via DIO4 #define LED_PIN PIN_LED @@ -57,4 +57,4 @@ #define SX126X_DIO2_AS_RF_SWITCH // Antenna switch CTRL #define SX126X_RXEN LORA_DIO4 // Antenna switch !CTRL via GPIO17 // #define SX126X_DIO3_TCXO_VOLTAGE 1.8 -#endif \ No newline at end of file +#endif