From 931be0ca53c18ea72dd2a72e90f368ccd1532868 Mon Sep 17 00:00:00 2001 From: tobiasfaust Date: Mon, 19 Aug 2024 17:27:47 +0200 Subject: [PATCH] bad conversion from string to char --- src/sensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sensor.cpp b/src/sensor.cpp index b870655..1bf65ad 100644 --- a/src/sensor.cpp +++ b/src/sensor.cpp @@ -133,7 +133,7 @@ void sensor::loop_hcsr04() { this->ads1115_devices->push_back(ads); } } else { - if (Config->GetDebugLevel() >=3) dbg.printf("Add Channel %d to ADS1115 at i2cAddress 0x%02x with topic '%s' \n", port, i2c, topic); + if (Config->GetDebugLevel() >=3) dbg.printf("Add Channel %d to ADS1115 at i2cAddress 0x%02x with topic '%s' \n", port, i2c, topic.c_str()); if (port == 0) {device->topic_chan1 = topic;} if (port == 1) {device->topic_chan2 = topic;} if (port == 2) {device->topic_chan3 = topic;}