mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2024-10-01 03:15:40 -04:00
Well that was embarassing...
This commit is contained in:
parent
f8299568fb
commit
ba9022335c
4
Config.h
4
Config.h
@ -78,9 +78,11 @@
|
|||||||
bool pmu_ready = false;
|
bool pmu_ready = false;
|
||||||
bool promisc = false;
|
bool promisc = false;
|
||||||
bool implicit = false;
|
bool implicit = false;
|
||||||
volatile bool packet_ready = false;
|
|
||||||
uint8_t implicit_l = 0;
|
uint8_t implicit_l = 0;
|
||||||
|
|
||||||
|
volatile bool packet_ready = false;
|
||||||
|
volatile uint8_t packet_interface = 0xFF;
|
||||||
|
|
||||||
uint8_t op_mode = MODE_HOST;
|
uint8_t op_mode = MODE_HOST;
|
||||||
uint8_t model = 0x00;
|
uint8_t model = 0x00;
|
||||||
uint8_t hwrev = 0x00;
|
uint8_t hwrev = 0x00;
|
||||||
|
@ -359,6 +359,7 @@ void receive_callback(uint8_t index, int packet_size) {
|
|||||||
getPacketData(selected_radio, packet_size);
|
getPacketData(selected_radio, packet_size);
|
||||||
|
|
||||||
seq = SEQ_UNSET;
|
seq = SEQ_UNSET;
|
||||||
|
packet_interface = index;
|
||||||
packet_ready = true;
|
packet_ready = true;
|
||||||
|
|
||||||
} else if (isSplitPacket(header) && seq != sequence) {
|
} else if (isSplitPacket(header) && seq != sequence) {
|
||||||
@ -384,6 +385,8 @@ void receive_callback(uint8_t index, int packet_size) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getPacketData(selected_radio, packet_size);
|
getPacketData(selected_radio, packet_size);
|
||||||
|
|
||||||
|
packet_interface = index;
|
||||||
packet_ready = true;
|
packet_ready = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -392,6 +395,8 @@ void receive_callback(uint8_t index, int packet_size) {
|
|||||||
read_len = 0;
|
read_len = 0;
|
||||||
|
|
||||||
getPacketData(selected_radio, packet_size);
|
getPacketData(selected_radio, packet_size);
|
||||||
|
|
||||||
|
packet_interface = index;
|
||||||
packet_ready = true;
|
packet_ready = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1167,7 +1172,7 @@ void loop() {
|
|||||||
#endif
|
#endif
|
||||||
kiss_indicate_stat_rssi();
|
kiss_indicate_stat_rssi();
|
||||||
kiss_indicate_stat_snr();
|
kiss_indicate_stat_snr();
|
||||||
kiss_write_packet(1);
|
kiss_write_packet(packet_interface);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ready = false;
|
bool ready = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user