fix #336, map Junkers hc3/4 to masterthermostat

This commit is contained in:
MichaelDvP
2022-01-31 10:12:50 +01:00
parent 3d1a050e22
commit eaf651a4e2
4 changed files with 20 additions and 3 deletions

View File

@@ -359,8 +359,9 @@ void TxService::send_telegram(const QueuedTxTelegram & tx_telegram) {
telegram_raw[message_p++] = telegram->message_data[i];
}
}
telegram_last_ = std::make_shared<Telegram>(*telegram); // make a copy of the telegram
// make a copy of the telegram with new dest
telegram_last_ =
std::make_shared<Telegram>(telegram->operation, telegram->src, dest, telegram->type_id, telegram->offset, telegram->message_data, telegram->message_length);
uint8_t length = message_p;
telegram_raw[length] = calculate_crc(telegram_raw, length); // generate and append CRC to the end