From db34785be08cb765d821519722f5ce95578f6b46 Mon Sep 17 00:00:00 2001 From: MichaelDvP <59284019+MichaelDvP@users.noreply.github.com> Date: Thu, 16 Sep 2021 17:14:22 +0200 Subject: [PATCH] add missing offset to telgram::to_string() --- src/telegram.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/telegram.cpp b/src/telegram.cpp index 5792cc4ba..726f43761 100644 --- a/src/telegram.cpp +++ b/src/telegram.cpp @@ -84,6 +84,7 @@ std::string Telegram::to_string() const { uint8_t data[EMS_MAX_TELEGRAM_LENGTH]; uint8_t length = 0; data[0] = this->src ^ RxService::ems_mask(); + data[3] = this->offset; if (this->operation == Telegram::Operation::TX_READ) { data[1] = this->dest | 0x80; data[4] = this->message_data[0];