mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 02:02:51 +00:00
[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:
co-authored by
Claude Opus 5.5
parent
5c5737303f
commit
b10eef537e
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user