mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-11 08:22:52 +00:00
Make b3 const
This commit is contained in:
@@ -100,9 +100,9 @@ public:
|
|||||||
const uint8_t b0 = *data++;
|
const uint8_t b0 = *data++;
|
||||||
const uint8_t b1 = *data++;
|
const uint8_t b1 = *data++;
|
||||||
const uint8_t b2 = *data++;
|
const uint8_t b2 = *data++;
|
||||||
uint8_t b3 = 0;
|
|
||||||
if (in.length > 3) // the shortest known/valid messages are 3 bytes long
|
// the shortest known/valid messages are 3 bytes long
|
||||||
b3 = *data++;
|
const uint8_t b3 = (in.length > 3) ? *data++ : 0;
|
||||||
|
|
||||||
if (!in.is_unicast) {
|
if (!in.is_unicast) {
|
||||||
const auto from = b0;
|
const auto from = b0;
|
||||||
|
|||||||
Reference in New Issue
Block a user