Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
markirb committed Oct 16, 2024
1 parent da38303 commit 3b7a581
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shelly_hap_humidity_sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ StatusOr<std::string> HumiditySensor::GetInfoJSON() const {
id(), type(), cfg_->name, 2, cfg_->update_interval, cfg_->offset);
auto tempval = hum_sensor_->GetHumidity();
if (tempval.ok()) {
mgos::JSONAppendStringf(&res, "value: %.1f", tempval.ValueOrDie() + cfg_->offset / 100);
mgos::JSONAppendStringf(&res, "value: %.1f",
tempval.ValueOrDie() + cfg_->offset / 100);
} else {
mgos::JSONAppendStringf(&res, "error: %.1f", tempval.ValueOrDie());
}
Expand Down

0 comments on commit 3b7a581

Please sign in to comment.