mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 17:05:21 +01:00
Add data sizes to tuya log message (#1938)
This commit is contained in:
parent
4395664547
commit
4891cfef56
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ void Tuya::handle_datapoint_(const uint8_t *buffer, size_t len) {
|
|||
const uint8_t *data = buffer + 4;
|
||||
size_t data_len = len - 4;
|
||||
if (data_size != data_len) {
|
||||
ESP_LOGW(TAG, "Datapoint %u is not expected size", datapoint.id);
|
||||
ESP_LOGW(TAG, "Datapoint %u is not expected size (%zu != %zu)", datapoint.id, data_size, data_len);
|
||||
return;
|
||||
}
|
||||
datapoint.len = data_len;
|
||||
|
|
Loading…
Reference in a new issue