Well that was embarassing...

master
jacob.eva 6 months ago
parent f8299568fb
commit ba9022335c
No known key found for this signature in database
GPG Key ID: B92E083BBCCAA1E
  1. 4
      Config.h
  2. 7
      RNode_Firmware_CE.ino

@ -78,9 +78,11 @@
bool pmu_ready = false;
bool promisc = false;
bool implicit = false;
volatile bool packet_ready = false;
uint8_t implicit_l = 0;
volatile bool packet_ready = false;
volatile uint8_t packet_interface = 0xFF;
uint8_t op_mode = MODE_HOST;
uint8_t model = 0x00;
uint8_t hwrev = 0x00;

@ -359,6 +359,7 @@ void receive_callback(uint8_t index, int packet_size) {
getPacketData(selected_radio, packet_size);
seq = SEQ_UNSET;
packet_interface = index;
packet_ready = true;
} else if (isSplitPacket(header) && seq != sequence) {
@ -384,6 +385,8 @@ void receive_callback(uint8_t index, int packet_size) {
}
getPacketData(selected_radio, packet_size);
packet_interface = index;
packet_ready = true;
}
} else {
@ -392,6 +395,8 @@ void receive_callback(uint8_t index, int packet_size) {
read_len = 0;
getPacketData(selected_radio, packet_size);
packet_interface = index;
packet_ready = true;
}
@ -1167,7 +1172,7 @@ void loop() {
#endif
kiss_indicate_stat_rssi();
kiss_indicate_stat_snr();
kiss_write_packet(1);
kiss_write_packet(packet_interface);
}
bool ready = false;

Loading…
Cancel
Save