From e2ae2dec30c0500284baf1a72a1b6875f8c56905 Mon Sep 17 00:00:00 2001 From: Kevyn Malpass Date: Tue, 18 Jul 2023 00:00:50 -0500 Subject: [PATCH] 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)); --- guides/automations.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/automations.rst b/guides/automations.rst index e53126a300..431360b7fa 100644 --- a/guides/automations.rst +++ b/guides/automations.rst @@ -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: