Skip to content

Commit

Permalink
fix pub of res field (#1311)
Browse files Browse the repository at this point in the history
  • Loading branch information
rds76 authored Nov 3, 2022
1 parent b2a757f commit 7d10502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/ZsensorDS1820.ino
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void MeasureDS1820Temp() {

if (DS1820_DETAILS) {
DS1820data["type"] = ds1820_type[i];
DS1820data["res"] = ds1820_resolution[i] + String("bit" CR);
DS1820data["res"] = String(ds1820_resolution[i]) + String("bit");
DS1820data["addr"] = ds1820_addr[i];
}
pub((char*)(String(OW_TOPIC) + "/" + ds1820_addr[i]).c_str(), DS1820data);
Expand Down

0 comments on commit 7d10502

Please sign in to comment.