mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-05-03 23:24:56 -04:00
Attach packet RSSI and SNR to packet queue entry structs. Disable ISR spinlocks on ESP32 until tested.
This commit is contained in:
parent
1de5f3c796
commit
389745ad33
7 changed files with 86 additions and 47 deletions
|
@ -562,6 +562,14 @@ int ISR_VECT sx126x::packetRssi() {
|
|||
return pkt_rssi;
|
||||
}
|
||||
|
||||
int ISR_VECT sx126x::packetRssi(uint8_t pkt_snr_raw) {
|
||||
// may need more calculations here
|
||||
uint8_t buf[3] = {0};
|
||||
executeOpcodeRead(OP_PACKET_STATUS_6X, buf, 3);
|
||||
int pkt_rssi = -buf[0] / 2;
|
||||
return pkt_rssi;
|
||||
}
|
||||
|
||||
uint8_t ISR_VECT sx126x::packetSnrRaw() {
|
||||
uint8_t buf[3] = {0};
|
||||
executeOpcodeRead(OP_PACKET_STATUS_6X, buf, 3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue