Skip to content

Commit

Permalink
Bugfix Issue #7: Incorrect temperature (fixed in 0.4.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteidlD authored May 1, 2021
1 parent e64fbfc commit d576a58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions InkbirdBtTHSensorAccessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// 16.06.2020 D. Steidl Bugfix: Reference error Characteristic (fixed in 0.3.1)
// 25.06.2020 D. Steidl Actualization also in cyclic mode, info internal/external sensor as CustomCharacteristic
// 07.02.2021 D. Steidl Bugfix Issue #4: Incorrect temperature, "not in list - try it anyway" improved
// 01.05.2021 D. Steidl Bugfix Issue #7: Incorrect temperature (fixed in 0.4.1)
//-----------------------------------------------------------------------

//-----------------------------------------------------------------------
Expand Down Expand Up @@ -372,6 +373,7 @@ class cInkbirdBtTHSensorAccessory
//------------------------
self.cTemperatureService
.getCharacteristic(global.cCharacteristic.CurrentTemperature)
.setProps({minValue: -273.15, maxValue: 1000.0})
.on("get", self.getTemperature.bind(self));
self.cTemperatureService
.addCharacteristic(self.dcCustomCharacteristic.ExternalSensor)
Expand Down

0 comments on commit d576a58

Please sign in to comment.