mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
Fixed style errors
This commit is contained in:
@@ -704,11 +704,11 @@ void _printMessage(uint8_t * telegram, uint8_t length) {
|
|||||||
uint8_t dest = telegram[1] & 0x7F; // remove 8th bit to handle both reads and writes
|
uint8_t dest = telegram[1] & 0x7F; // remove 8th bit to handle both reads and writes
|
||||||
uint8_t type = telegram[2];
|
uint8_t type = telegram[2];
|
||||||
uint8_t offset = telegram[3];
|
uint8_t offset = telegram[3];
|
||||||
uint8_t * data = telegram + 4; // data block starts at position 5
|
uint8_t * data = &telegram[4]; // data block starts at position 5
|
||||||
if (type >= 240) {
|
if (type >= 240) {
|
||||||
type = telegram[3];
|
type = telegram[3];
|
||||||
uint8_t offset = telegram[4];
|
offset = telegram[4];
|
||||||
data = telegram + 5;
|
data = &telegram[5 + offset];
|
||||||
emsp = true;
|
emsp = true;
|
||||||
}
|
}
|
||||||
// print detailed telegram data
|
// print detailed telegram data
|
||||||
|
|||||||
Reference in New Issue
Block a user