File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33#if defined(TBEAM_SUPREME_SX1262) || defined(TBEAM_SX1262) || defined(TBEAM_SX1276)
44
5- #include < Wire.h>
6- #include < Arduino.h>
7- #include " XPowersLib.h"
8- #include " helpers/ESP32Board.h"
9- #include < driver/rtc_io.h>
10- // #include <RadioLib.h>
11- // #include <helpers/RadioLibWrappers.h>
12- // #include <helpers/CustomSX1262Wrapper.h>
13- // #include <helpers/CustomSX1276Wrapper.h>
14-
5+ // Define pin mappings BEFORE including ESP32Board.h so sleep() can use P_LORA_DIO_1
156#ifdef TBEAM_SUPREME_SX1262
167 // LoRa radio module pins for TBeam S3 Supreme SX1262
178 #define P_LORA_DIO_0 -1 // NC
9081// SX1276
9182// };
9283
84+ // Include headers AFTER pin definitions so ESP32Board::sleep() can use P_LORA_DIO_1
85+ #include < Wire.h>
86+ #include < Arduino.h>
87+ #include " XPowersLib.h"
88+ #include " helpers/ESP32Board.h"
89+ #include < driver/rtc_io.h>
90+
9391class TBeamBoard : public ESP32Board {
9492XPowersLibInterface *PMU = NULL ;
9593// PhysicalLayer * pl;
You can’t perform that action at this time.
0 commit comments