diff --git a/tw7100.cpp b/tw7100.cpp index 8ccb3cc..27c1219 100644 --- a/tw7100.cpp +++ b/tw7100.cpp @@ -207,7 +207,7 @@ void tw7100Component::update_sensor(std::pair 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);