We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddf1891 commit 1255658Copy full SHA for 1255658
examples/thermostat/silabs/efr32/src/TemperatureManager.cpp
@@ -56,7 +56,7 @@ CHIP_ERROR TemperatureManager::Init()
56
ThermAttr::SystemMode::Get(kThermostatEndpoint, &systemMode);
57
PlatformMgr().UnlockChipStack();
58
59
- mCurrentTempCelsius = ConvertToPrintableTemp(temp.Value());
+ mCurrentTempCelsius = ConvertToPrintableTemp((temp.IsNull()) ? static_cast<int16_t>(0.0) : temp.Value());
60
mHeatingCelsiusSetPoint = ConvertToPrintableTemp(coolingSetpoint);
61
mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint);
62
mThermMode = systemMode;
0 commit comments