mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* refactor Packet::_snr to single byte
This commit is contained in:
parent
b2fcc692ea
commit
544adec2b6
2 changed files with 3 additions and 3 deletions
|
|
@ -108,7 +108,7 @@ void Dispatcher::checkRecv() {
|
|||
pkt->payload_len = len - i; // payload is remainder
|
||||
memcpy(pkt->payload, &raw[i], pkt->payload_len);
|
||||
|
||||
score = _radio->packetScore(pkt->_snr = _radio->getLastSNR(), len);
|
||||
score = _radio->packetScore(pkt->_snr = (_radio->getLastSNR() * 4.0f), len);
|
||||
air_time = _radio->getEstAirtimeFor(len);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue