Fix log message parameter type

This commit is contained in:
sqozz 2024-09-16 21:47:34 +02:00
parent 0b89892f9e
commit 32d48ac926

View file

@ -207,7 +207,7 @@ void tw7100Component::update_sensor(std::pair<std::string, std::string> data) {
do {
first_token_end = unparsed_result.find(" ");
second_token_end = unparsed_result.find(" ", first_token_end+1);
ESP_LOGV(TAG, "first_token_end: %i, second_token_end: %i, unparsed_result.length(): %i", first_token_end, second_token_end, unparsed_result.length() );
ESP_LOGV(TAG, "first_token_end: %i, second_token_end: %i, unparsed_result.length(): %li", first_token_end, second_token_end, unparsed_result.length() );
std::string key_string = unparsed_result.substr(0, first_token_end);
std::string value = unparsed_result.substr(first_token_end+1, second_token_end-first_token_end-1);