We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 595922a commit 246ceeaCopy full SHA for 246ceea
src/LoRa.cpp
@@ -38,6 +38,7 @@
38
#define REG_SYNC_WORD 0x39
39
#define REG_INVERTIQ2 0x3b
40
#define REG_DIO_MAPPING_1 0x40
41
+#define REG_DIO_MAPPING_2 0x41
42
#define REG_VERSION 0x42
43
#define REG_PA_DAC 0x4d
44
@@ -215,6 +216,7 @@ int LoRaClass::endPacket(bool async, int implicitHeader) {
215
216
217
// put in TX mode
218
writeRegister(REG_OP_MODE, MODE_LONG_RANGE_MODE | MODE_TX);
219
+ writeRegister(REG_DIO_MAPPING_2, 0x00); //
220
221
if (!async) {
222
// wait for TX done
@@ -440,6 +442,7 @@ void LoRaClass::onTxDone(void (*callback)()) {
440
442
441
443
void LoRaClass::receive(int size) {
444
writeRegister(REG_DIO_MAPPING_1, 0x00); // DIO0 => RXDONE
445
+ writeRegister(REG_DIO_MAPPING_2, 0x40); //
446
447
if (size > 0) {
448
implicitHeaderMode();
0 commit comments