mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
add missing offset to telgram::to_string()
This commit is contained in:
@@ -84,6 +84,7 @@ std::string Telegram::to_string() const {
|
|||||||
uint8_t data[EMS_MAX_TELEGRAM_LENGTH];
|
uint8_t data[EMS_MAX_TELEGRAM_LENGTH];
|
||||||
uint8_t length = 0;
|
uint8_t length = 0;
|
||||||
data[0] = this->src ^ RxService::ems_mask();
|
data[0] = this->src ^ RxService::ems_mask();
|
||||||
|
data[3] = this->offset;
|
||||||
if (this->operation == Telegram::Operation::TX_READ) {
|
if (this->operation == Telegram::Operation::TX_READ) {
|
||||||
data[1] = this->dest | 0x80;
|
data[1] = this->dest | 0x80;
|
||||||
data[4] = this->message_data[0];
|
data[4] = this->message_data[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user