[teleinfo] Log the tag name for an invalid timestamp (#20532)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Frédéric Metrich
2026-10-11 09:41:28 -10:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 5c5737303f
commit b10eef537e
+1 -1
View File
@@ -154,7 +154,7 @@ void TeleInfo::loop() {
if (std::count(buf_finger, grp_end, separator_) == 2 && strcmp(tag_, "DATE") != 0 && separator_ != 0x20) {
field_len = get_field(timestamp_, buf_finger, grp_end, separator_, MAX_TIMESTAMP_SIZE);
if (!field_len || field_len >= MAX_TIMESTAMP_SIZE) {
ESP_LOGE(TAG, "Invalid timestamp for tag %s", timestamp_);
ESP_LOGE(TAG, "Invalid timestamp for tag %s", tag_);
continue;
}