From 725b9898c5309c1738c429b76b9a57d351301ee5 Mon Sep 17 00:00:00 2001 From: Luis Teixeira Date: Tue, 10 Mar 2020 22:53:49 +0000 Subject: [PATCH] Added cast to properly deal with the AddLogMissed function prototype. --- tasmota/xsns_92_hdc1080.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xsns_92_hdc1080.ino b/tasmota/xsns_92_hdc1080.ino index 1e045c9a8..f5cd385b1 100644 --- a/tasmota/xsns_92_hdc1080.ino +++ b/tasmota/xsns_92_hdc1080.ino @@ -65,7 +65,7 @@ #define HDC1080_TEMP_OFFSET 40.0 -char* hdc_type_name = "HDC1080"; +const char* hdc_type_name = "HDC1080"; uint16_t hdc_manufacturer_id = 0; uint16_t hdc_device_id = 0; @@ -213,7 +213,7 @@ void HdcDetect(void) { void HdcEverySecond(void) { if (uptime &1) { // Every 2 seconds if (!HdcRead()) { - AddLogMissed(hdc_type_name, hdc_valid); + AddLogMissed((char*) hdc_type_name, hdc_valid); } } }