Skip to content

Commit

Permalink
Define BUTTON_PIN as -1 for RP2040-lora
Browse files Browse the repository at this point in the history
The previous approach of undef'ing meant that it was impossible
for users to change the button pin in the apps.

Fixes #5566
  • Loading branch information
fifieldt committed Dec 15, 2024
1 parent 6d8be13 commit 0a094e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions variants/rp2040-lora/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
#endif

0 comments on commit 0a094e4

Please sign in to comment.