[BF] Fixing Issue with Math.Abs(l)
This commit is contained in:
parent
a22628b0d0
commit
64c9020bcb
@ -65,7 +65,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs {
|
||||
Double l = Double.Parse(json["val"]["value"].ToString());
|
||||
if (t == "Power" && (l > 3660 || l < 0) ||
|
||||
t == "Temperature" && (l > 65 || l < -25) ||
|
||||
(t == "Temperature" && this.Level >= 4 && Math.Abs(l) >= 0.1)) {
|
||||
(t == "Temperature" && this.Level >= 4 && Math.Abs(l) <= 0.1)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ namespace BlubbFish.IoT.Zway.Interfaces {
|
||||
Association = 133,
|
||||
Version = 134,
|
||||
Proprietary = 136,
|
||||
TimeParameters = 139,
|
||||
MultiChannelAssociation = 142,
|
||||
MultiCmd = 143,
|
||||
Security = 152
|
||||
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
||||
// indem Sie "*" wie unten gezeigt eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.4.2.0")]
|
||||
[assembly: AssemblyFileVersion("1.4.2.0")]
|
||||
[assembly: AssemblyVersion("1.4.3")]
|
||||
[assembly: AssemblyFileVersion("1.4.3")]
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user