Skip to content

Commit 3a81f28

Browse files
committed
RadioLibWrappers.cpp: Fix STATE_TX_WAIT bitmask
STATE_TX_WAIT is meant to be a single bit but is defined as two bits, therefore overlapping with STATE_RX. This causes incorrect results when the code uses the bits to handle the state machine. Fix this. Signed-off-by: Frieder Schrempf <frieder@fris.de>
1 parent 5cd6a0a commit 3a81f28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/helpers/radiolib/RadioLibWrappers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#define STATE_IDLE 0
66
#define STATE_RX 1
7-
#define STATE_TX_WAIT 3
7+
#define STATE_TX_WAIT 2
88
#define STATE_TX_DONE 4
99
#define STATE_INT_READY 16
1010

0 commit comments

Comments
 (0)