2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

10_WS980: fix num vs string

git-svn-id: https://svn.fhem.de/fhem/trunk@23510 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
choenig 2021-01-11 08:37:16 +00:00
parent 316deaa6c9
commit 3c1226f06e
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- change: 10_WS980: fix num vs. string
- change: 55_DWD_OpenData: logging (forum #83097 msg #1114070)
- feature: 74_Unifi: get deviceData hinzugefügt
- feature: 74_UnifiSwitch: new setter portProfile

View File

@ -33,7 +33,7 @@ use warnings;
use IO::Socket::INET;
use POSIX qw(strftime);
my $version = "1.2.0";
my $version = "1.2.1";
#------------------------------------------------------------------------------------------------------
# global constants
@ -1006,10 +1006,10 @@ sub WS980_updateRelPressure($)
}
my $relPressure = WS980_calculateRelPressure_QFF(
ReadingsVal($name, "temperature", 0.0),
ReadingsVal($name, "pressureAbs", 0.0),
ReadingsNum($name, "temperature", 0.0),
ReadingsNum($name, "pressureAbs", 0.0),
$altitude,
ReadingsVal($name, "humidity", 0.0));
ReadingsNum($name, "humidity", 0.0));
readingsSingleUpdate($hash, "pressureRel_calculated", sprintf("%.1f", $relPressure), 1);
}