mirror of
https://github.com/esphome/esphome.git
synced 2024-12-19 16:07:47 +01:00
Add data sizes to tuya log message (#1938)
This commit is contained in:
parent
4395664547
commit
4891cfef56
@ -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 New Issue
Block a user