From b7fd703a1cce3a8b8cd1bb9954816c924cc0f26d Mon Sep 17 00:00:00 2001 From: Paul Nicholls Date: Fri, 3 Jan 2020 16:38:27 +1300 Subject: [PATCH] Fix incorrect type in log call for unexpected params. Fixes #7 --- linp-doorbell.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linp-doorbell.h b/linp-doorbell.h index 309b370..258813a 100644 --- a/linp-doorbell.h +++ b/linp-doorbell.h @@ -124,7 +124,7 @@ class LinpDoorbell : public Component, CustomAPIDevice { value.remove(0, 7); if (!value.equals("\"ok\"")) { if (requests.isEmpty()) { - ESP_LOGI("linp-doorbell", "Unexpected property received: %s", value); + ESP_LOGI("linp-doorbell", "Unexpected property received: %s", value.c_str()); } else { String param = requests.dequeue(); handleParam(param, value);