Skip to content

Commit

Permalink
Merge pull request #4360 from euphi/patch-1
Browse files Browse the repository at this point in the history
Usermod BME280: Fix "Unit of Measurement" for temperature
  • Loading branch information
netmindz authored Dec 10, 2024
2 parents af410ae + 9a4073e commit d7bebc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usermods/BME280_v2/usermod_bme280.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ class UsermodBME280 : public Usermod
configComplete &= getJsonValue(top[F("PublishAlways")], PublishAlways, false);
configComplete &= getJsonValue(top[F("UseCelsius")], UseCelsius, true);
configComplete &= getJsonValue(top[F("HomeAssistantDiscovery")], HomeAssistantDiscovery, false);
tempScale = UseCelsius ? "°C" : "°F";

DEBUG_PRINT(FPSTR(_name));
if (!initDone) {
Expand Down

0 comments on commit d7bebc2

Please sign in to comment.