mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-27 04:13:07 +02:00
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:
parent
046e7ba697
commit
e2ae2dec30
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user