Skip to content

Commit d6182be

Browse files
netmindzPluto1010
authored andcommitted
Merge pull request wled#4360 from euphi/patch-1
Usermod BME280: Fix "Unit of Measurement" for temperature
2 parents 9c1404c + 9a4073e commit d6182be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

usermods/BME280_v2/BME280_v2.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ class UsermodBME280 : public Usermod
442442
configComplete &= getJsonValue(top[F("PublishAlways")], PublishAlways, false);
443443
configComplete &= getJsonValue(top[F("UseCelsius")], UseCelsius, true);
444444
configComplete &= getJsonValue(top[F("HomeAssistantDiscovery")], HomeAssistantDiscovery, false);
445+
tempScale = UseCelsius ? "°C" : "°F";
445446

446447
DEBUG_PRINT(FPSTR(_name));
447448
if (!initDone) {

0 commit comments

Comments
 (0)