Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Jul 20, 2022
1 parent 69568ab commit d707e92
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion RELEASENOTES.md
Expand Up @@ -3,4 +3,3 @@
# Firmware Installation

Follow the instructions in the [documentation](https://emsesp.github.io/docs) on how to install the firmware binaries in the Assets below.

1 change: 0 additions & 1 deletion RELEASENOTES_DEV.md
Expand Up @@ -5,4 +5,3 @@ This is a snapshot of the current "beta" development code and firmware binaries
# Firmware Installation

Follow the instructions in the [documentation](https://emsesp.github.io/docs) on how to install the firmware binaries in the Assets below.

4 changes: 2 additions & 2 deletions src/analogsensor.cpp
Expand Up @@ -411,10 +411,10 @@ void AnalogSensor::publish_values(const bool force) {

snprintf(str, sizeof(str), "analogsensor_%d", sensor.gpio());
config["uniq_id"] = str;

if (sensor.uom() != DeviceValueUOM::NONE) {
config["unit_of_meas"] = EMSdevice::uom_to_string(sensor.uom());
}
}

JsonObject dev = config.createNestedObject("dev");
JsonArray ids = dev.createNestedArray("ids");
Expand Down

0 comments on commit d707e92

Please sign in to comment.