Well that was embarassing...

This commit is contained in:
jacob.eva 2024-09-11 21:49:27 +01:00
parent f8299568fb
commit ba9022335c
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E
2 changed files with 9 additions and 2 deletions

View File

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

View File

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