Skip to content

Commit 6caf0b2

Browse files
committed
Changed SX1272 and SX1276 FSK FIFO threshold from 63 to 31.
Radio driver uses chunks of 32 bytes for FIFO management. Changing the value to 63 was not a good idea as it prevents the FIFO threshold IRQ to be triggered when data buffer to be transmitted is bigger than 64 bytes.
1 parent 34f8c27 commit 6caf0b2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/boards/sx1272-board.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ extern "C"
5050
{ MODEM_FSK , REG_SYNCVALUE2 , 0x94 },\
5151
{ MODEM_FSK , REG_SYNCVALUE3 , 0xC1 },\
5252
{ MODEM_FSK , REG_PACKETCONFIG1 , 0xD8 },\
53-
{ MODEM_FSK , REG_FIFOTHRESH , 0xBF },\
53+
/* FIFO threshold set to 32 (31+1) */ \
54+
{ MODEM_FSK , REG_FIFOTHRESH , 0x9F },\
5455
{ MODEM_FSK , REG_IMAGECAL , 0x02 },\
5556
{ MODEM_FSK , REG_DIOMAPPING1 , 0x00 },\
5657
{ MODEM_FSK , REG_DIOMAPPING2 , 0x30 },\

src/boards/sx1276-board.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ extern "C"
5050
{ MODEM_FSK , REG_SYNCVALUE2 , 0x94 },\
5151
{ MODEM_FSK , REG_SYNCVALUE3 , 0xC1 },\
5252
{ MODEM_FSK , REG_PACKETCONFIG1 , 0xD8 },\
53-
{ MODEM_FSK , REG_FIFOTHRESH , 0xBF },\
53+
/* FIFO threshold set to 32 (31+1) */ \
54+
{ MODEM_FSK , REG_FIFOTHRESH , 0x9F },\
5455
{ MODEM_FSK , REG_IMAGECAL , 0x02 },\
5556
{ MODEM_FSK , REG_DIOMAPPING1 , 0x00 },\
5657
{ MODEM_FSK , REG_DIOMAPPING2 , 0x30 },\

0 commit comments

Comments
 (0)