[BF] Fixing Issue with Math.Abs(l)

This commit is contained in:
BlubbFish 2018-05-12 12:36:32 +00:00
parent a22628b0d0
commit 64c9020bcb
4 changed files with 4 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -38,6 +38,7 @@ namespace BlubbFish.IoT.Zway.Interfaces {
Association = 133,
Version = 134,
Proprietary = 136,
TimeParameters = 139,
MultiChannelAssociation = 142,
MultiCmd = 143,
Security = 152

View File

@ -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.