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:
parent
316deaa6c9
commit
3c1226f06e
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user