Update automations.rst (#3076)

Added .c_str() for string output in logger example. 
On line 290, changed:

ESP_LOGD(TAG, "%s: %d", id(my_global_string), id(my_global_int));

to:

ESP_LOGD(TAG, "%s: %d", id(my_global_string).c_str(), id(my_global_int));
This commit is contained in:
Kevyn Malpass 2023-07-18 00:00:50 -05:00 committed by GitHub
parent 046e7ba697
commit e2ae2dec30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,7 +287,7 @@ global variables can be used to store the state of a garage door.
id(my_global_int) += 10;
}
ESP_LOGD(TAG, "%s: %d", id(my_global_string), id(my_global_int));
ESP_LOGD(TAG, "%s: %d", id(my_global_string).c_str(), id(my_global_int));
Configuration variables: