jgromes / RadioLib

Universal wireless communication library for embedded devices
https://jgromes.github.io/RadioLib/
MIT License
1.58k stars 395 forks source link

[SX127x] IRQ mask handling uses the wrong DIO register #1244

Closed caveman99 closed 1 month ago

caveman99 commented 1 month ago

https://github.com/jgromes/RadioLib/commit/38fc7a97a4c195b7c10aa94215a1c53ec18a56ef checks the DIO mapping for collisions. Compared to the code before, the assignment in line 1403 swaps RADIOLIB_SX127X_REG_DIO_MAPPING_1 for RADIOLIB_SX127X_REG_DIO_MAPPING_2 and vice versa. Mapping_1 is used for DIO4 now and Mapping_2 for DIO0-3