Skip to content

Commit f222d62

Browse files
committed
[RadioLib] apply DIO11 fix again
1 parent a923d66 commit f222d62

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

documents/images/Card-8.jpg

122 KB
Loading

software/firmware/source/SoftRF/src/platform/ESP32.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,10 @@ static void ESP32_setup()
831831

832832
hw_info.revision = 12;
833833
hw_info.pmu = PMU_AXP2101;
834+
#if defined(USE_RADIOLIB)
835+
/* reserved for HPD-16E */
836+
lmic_pins.dio[0] = SOC_GPIO_PIN_TBEAM_RF_DIO1_V08;
837+
#endif /* USE_RADIOLIB */
834838
} else {
835839
WIRE_FINI(Wire1);
836840
hw_info.revision = 2;

software/firmware/source/SoftRF/src/platform/iomap/LilyGO_T22.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#define SOC_GPIO_PIN_TBEAM_RF_RST_V05 23
2323
// SX1262 BUSY
2424
#define SOC_GPIO_PIN_TBEAM_RF_BUSY_V08 32
25+
// SX1262 - DIO1, LR1121 - DIO11
26+
#define SOC_GPIO_PIN_TBEAM_RF_DIO1_V08 33
2527
// 1st I2C bus on the T-Beam
2628
#define SOC_GPIO_PIN_TBEAM_SDA 13
2729
#define SOC_GPIO_PIN_TBEAM_SCL 2

software/firmware/source/libraries/RadioLib/src/modules/LR11x0/LR11x0.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2452,7 +2452,7 @@ int16_t LR11x0::setDioIrqParams(uint32_t irq1, uint32_t irq2) {
24522452
}
24532453

24542454
int16_t LR11x0::setDioIrqParams(uint32_t irq) {
2455-
return(setDioIrqParams(irq, 0));
2455+
return(setDioIrqParams(irq, irq));
24562456
}
24572457

24582458
int16_t LR11x0::clearIrq(uint32_t irq) {

0 commit comments

Comments
 (0)