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
|
|
@ -45,7 +45,7 @@ public:
|
|||
uint16_t payload_len, path_len;
|
||||
uint8_t path[MAX_PATH_SIZE];
|
||||
uint8_t payload[MAX_PACKET_PAYLOAD];
|
||||
float _snr;
|
||||
int8_t _snr;
|
||||
|
||||
/**
|
||||
* \brief calculate the hash of payload + type
|
||||
|
|
@ -74,7 +74,7 @@ public:
|
|||
void markDoNotRetransmit() { header = 0xFF; }
|
||||
bool isMarkedDoNotRetransmit() const { return header == 0xFF; }
|
||||
|
||||
float getSNR() const { return _snr; }
|
||||
float getSNR() const { return ((float)_snr) / 4.0f; }
|
||||
|
||||
/**
|
||||
* \brief save entire packet as a blob
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue