mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
refactor device value rendering (to Web, Console or MQTT) to base class #632
This commit is contained in:
@@ -73,6 +73,7 @@ Telegram::Telegram(const uint8_t operation,
|
||||
, offset(offset)
|
||||
, message_length(message_length) {
|
||||
// copy complete telegram data over, preventing buffer overflow
|
||||
// faster than using std::move()
|
||||
for (uint8_t i = 0; ((i < message_length) && (i < EMS_MAX_TELEGRAM_MESSAGE_LENGTH)); i++) {
|
||||
message_data[i] = data[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user