mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-08-09 15:02:34 -04:00
Poll for packets
This commit is contained in:
parent
910b8b0821
commit
15d1cdc526
3 changed files with 44 additions and 19 deletions
|
@ -778,6 +778,12 @@ void loop() {
|
|||
kiss_write_packet();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if MCU_VARIANT == MCU_LINUX
|
||||
// We don't have interrupts, so we need to poll ofr received packets.
|
||||
// TODO: Is this fast enough? Or do we need threads or something?
|
||||
LoRa.pollReceive();
|
||||
#endif
|
||||
|
||||
if (queue_height > 0) {
|
||||
if (!dcd_waiting) updateModemStatus();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue