mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-30 17:05:52 +00:00
* minor refactor, SNR from packet
This commit is contained in:
@@ -739,7 +739,7 @@ protected:
|
||||
memcpy(&out_frame[i], &auth_code, 4); i += 4;
|
||||
memcpy(&out_frame[i], path_hashes, path_len); i += path_len;
|
||||
memcpy(&out_frame[i], path_snrs, path_len); i += path_len;
|
||||
out_frame[i++] = (int8_t)(_radio->getLastSNR() * 4); // extra/final SNR (to this node)
|
||||
out_frame[i++] = (int8_t)(packet->getSNR() * 4); // extra/final SNR (to this node)
|
||||
|
||||
if (_serial->isConnected()) {
|
||||
_serial->writeFrame(out_frame, i);
|
||||
|
||||
Reference in New Issue
Block a user