mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-07-28 09:14:07 -04:00
Added KISS flow control
This commit is contained in:
parent
8a35afbebe
commit
978800aaf9
4 changed files with 24 additions and 0 deletions
|
@ -42,6 +42,7 @@ bool startRadio() {
|
|||
setTXPower();
|
||||
setBandwidth();
|
||||
setSpreadingFactor();
|
||||
setCodingRate();
|
||||
getFrequency();
|
||||
|
||||
LoRa.enableCrc();
|
||||
|
@ -178,6 +179,10 @@ void transmit(size_t size) {
|
|||
LoRa.endPacket();
|
||||
led_tx_off();
|
||||
LoRa.receive();
|
||||
|
||||
if (FLOW_CONTROL_ENABLED)
|
||||
kiss_indicate_ready();
|
||||
|
||||
} else {
|
||||
kiss_indicate_error(ERROR_TXFAILED);
|
||||
led_indicate_error(5);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue