mirror of
https://github.com/esphome/esphome.git
synced 2026-09-20 11:38:48 +00:00
handle truncate
This commit is contained in:
@@ -170,7 +170,7 @@ class ABBWelcomeData {
|
||||
'.');
|
||||
snprintf(ptr, remaining, ", Data: %s", data_hex);
|
||||
}
|
||||
} else {
|
||||
} else if (remaining > 1) {
|
||||
snprintf(ptr, remaining, "[Invalid]");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user