Add data sizes to tuya log message (#1938)

This commit is contained in:
Jesse Hills 2021-06-18 15:50:56 +12:00 committed by GitHub
parent 4395664547
commit 4891cfef56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,7 @@ void Tuya::handle_datapoint_(const uint8_t *buffer, size_t len) {
const uint8_t *data = buffer + 4; const uint8_t *data = buffer + 4;
size_t data_len = len - 4; size_t data_len = len - 4;
if (data_size != data_len) { 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; return;
} }
datapoint.len = data_len; datapoint.len = data_len;