Skip to content

Commit

Permalink
[RadioLib] apply DIO11 fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Nov 20, 2024
1 parent a923d66 commit f222d62
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Binary file added documents/images/Card-8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions software/firmware/source/SoftRF/src/platform/ESP32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,10 @@ static void ESP32_setup()

hw_info.revision = 12;
hw_info.pmu = PMU_AXP2101;
#if defined(USE_RADIOLIB)
/* reserved for HPD-16E */
lmic_pins.dio[0] = SOC_GPIO_PIN_TBEAM_RF_DIO1_V08;
#endif /* USE_RADIOLIB */
} else {
WIRE_FINI(Wire1);
hw_info.revision = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#define SOC_GPIO_PIN_TBEAM_RF_RST_V05 23
// SX1262 BUSY
#define SOC_GPIO_PIN_TBEAM_RF_BUSY_V08 32
// SX1262 - DIO1, LR1121 - DIO11
#define SOC_GPIO_PIN_TBEAM_RF_DIO1_V08 33
// 1st I2C bus on the T-Beam
#define SOC_GPIO_PIN_TBEAM_SDA 13
#define SOC_GPIO_PIN_TBEAM_SCL 2
Original file line number Diff line number Diff line change
Expand Up @@ -2452,7 +2452,7 @@ int16_t LR11x0::setDioIrqParams(uint32_t irq1, uint32_t irq2) {
}

int16_t LR11x0::setDioIrqParams(uint32_t irq) {
return(setDioIrqParams(irq, 0));
return(setDioIrqParams(irq, irq));
}

int16_t LR11x0::clearIrq(uint32_t irq) {
Expand Down

0 comments on commit f222d62

Please sign in to comment.