]> git.tnoah.ca Git - lora-radio.git/commitdiff
Fixed flow control ready indication
authorMark Qvist <mark@adepta.io>
Wed, 4 Jul 2018 21:24:07 +0000 (23:24 +0200)
committerMark Qvist <mark@adepta.io>
Wed, 4 Jul 2018 21:24:07 +0000 (23:24 +0200)
Config.h
RNode_Firmware.ino
Utilities.cpp

index 2f572a845165492bc95ade306e9f856a3aeefaaf..da625fa2d297d0b0f17cfbb03e8e159195d8e9a1 100644 (file)
--- a/Config.h
+++ b/Config.h
@@ -4,7 +4,7 @@
        #define CONFIG_H
 
        #define MAJ_VERS  0x01
-       #define MIN_VERS  0x07
+       #define MIN_VERS  0x08
 
        #define MCU_328P  0x90
        #define MCU_1284P 0x91
index d9de441233d3675264ec0ab6fb277b2e2a296a74..ca3549b433331d8e231295132fb33c47ce4be3a8 100644 (file)
@@ -220,6 +220,9 @@ void enqueuePacket(size_t length) {
       qbuf[insert_addr+i] = sbuf[i];
     }
     queue_head = new_queue_head;
+    if (!queueFull()) {
+      kiss_indicate_ready();
+    }
   } else {
     kiss_indicate_error(ERROR_QUEUE_FULL);
   }
index 9d58b5708271b50ea7514543c712b27c48a93bfa..81f8382eb6b26f834d32abd71c0e205d6a8e50ad 100644 (file)
@@ -55,7 +55,7 @@ void led_indicate_info(int cycles) {
 }
 
 uint8_t led_standby_min = 1;
-uint8_t led_standby_max = 22;
+uint8_t led_standby_max = 40;
 uint8_t led_standby_value = led_standby_min;
 int8_t  led_standby_direction = 0;
 unsigned long led_standby_ticks = 0;