Added KISS flow control

This commit is contained in:
Mark Qvist 2018-04-26 10:34:39 +02:00
parent 8a35afbebe
commit 978800aaf9
4 changed files with 24 additions and 0 deletions

View file

@ -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);