Fix log message parameter type
This commit is contained in:
parent
0b89892f9e
commit
32d48ac926
|
@ -207,7 +207,7 @@ void tw7100Component::update_sensor(std::pair<std::string, std::string> data) {
|
||||||
do {
|
do {
|
||||||
first_token_end = unparsed_result.find(" ");
|
first_token_end = unparsed_result.find(" ");
|
||||||
second_token_end = unparsed_result.find(" ", first_token_end+1);
|
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 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);
|
std::string value = unparsed_result.substr(first_token_end+1, second_token_end-first_token_end-1);
|
||||||
|
|
Loading…
Reference in a new issue