Skip to content

Commit

Permalink
bad conversion from string to char
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasfaust committed Aug 19, 2024
1 parent b2f1449 commit 931be0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;}
Expand Down

0 comments on commit 931be0c

Please sign in to comment.