Browse Source
Define P_LORA_DIO_1 as build flag for RAK11200
origin/dev's ESP32Board::getIRQGpio() references P_LORA_DIO_1 from the
base header, which is compiled before the variant header. Move the pin
to a -D build flag (matching every other ESP32 board) so it is visible
globally.
pull/1925/head
Wessel Nieboer
1 week ago
No known key found for this signature in database
GPG Key ID: 929C8E45E33B5FD2
2 changed files with
2 additions and
1 deletions
variants/rak11200/RAK11200Board.h
variants/rak11200/platformio.ini
@ -4,7 +4,7 @@
# include <helpers/ESP32Board.h>
# include <helpers/ESP32Board.h>
// LoRa radio module pins when paired with the RAK13300 SX1262 module
// LoRa radio module pins when paired with the RAK13300 SX1262 module
# define P_LORA_DIO_1 22 // GPIO22 (ESP32 pin 36 -> IO6/DIO1)
// P_LORA_DIO_1 is defined as a build flag (platformio.ini) so the base ESP32Board.h sees it
# define P_LORA_NSS 32 // GPIO32 (ESP32 pin 8 -> SPI_CS)
# define P_LORA_NSS 32 // GPIO32 (ESP32 pin 8 -> SPI_CS)
# define P_LORA_RESET 23 // GPIO23 (ESP32 pin 37 -> IO4/NRESET)
# define P_LORA_RESET 23 // GPIO23 (ESP32 pin 37 -> IO4/NRESET)
# define P_LORA_BUSY 13 // GPIO13 (ESP32 pin 16 -> IO5)
# define P_LORA_BUSY 13 // GPIO13 (ESP32 pin 16 -> IO5)
@ -16,6 +16,7 @@ build_flags =
-D PIN_OLED_RESET = -1
-D PIN_OLED_RESET = -1
-D RADIO_CLASS = CustomSX1262
-D RADIO_CLASS = CustomSX1262
-D WRAPPER_CLASS = CustomSX1262Wrapper
-D WRAPPER_CLASS = CustomSX1262Wrapper
-D P_LORA_DIO_1 = 22 ; GPIO22 (ESP32 pin 36 -> IO6/DIO1); build flag so base ESP32Board.h getIRQGpio() sees it
-D LORA_TX_POWER = 22
-D LORA_TX_POWER = 22
-D SX126X_CURRENT_LIMIT = 140
-D SX126X_CURRENT_LIMIT = 140
-D SX126X_DIO2_AS_RF_SWITCH = true
-D SX126X_DIO2_AS_RF_SWITCH = true