Skip to content

Commit d134c08

Browse files
Hasnain VirkAntti Kauppila
authored andcommitted
_rx_ready flag is now atomic since #9245
_rx_ready boolean is not used anymore. We set/unset it using core util atomic flag set test.
1 parent 7c571e2 commit d134c08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/lorawan/LoRaWANStack.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ void LoRaWANStack::process_reception(const uint8_t *const payload, uint16_t size
796796

797797
if (_ctrl_flags & REJOIN_IN_PROGRESS) {
798798
_ctrl_flags &= ~REJOIN_IN_PROGRESS;
799-
_ready_for_rx = true;
799+
core_util_atomic_flag_clear(&_rx_payload_in_use);
800800
return;
801801
}
802802

@@ -831,7 +831,7 @@ void LoRaWANStack::process_reception(const uint8_t *const payload, uint16_t size
831831
poll_rejoin();
832832
}
833833

834-
_ready_for_rx = true;
834+
core_util_atomic_flag_clear(&_rx_payload_in_use);
835835
}
836836

837837
void LoRaWANStack::poll_rejoin(void)

0 commit comments

Comments
 (0)