mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
fix parsing of midnight values
git-svn-id: https://svn.fhem.de/fhem/trunk@3223 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ffcb587db0
commit
59e38b68af
@ -80,7 +80,7 @@ use strict;
|
||||
use warnings;
|
||||
sub Log($$);
|
||||
|
||||
my $owx_version="3.23";
|
||||
my $owx_version="3.25";
|
||||
#-- fixed raw channel name, flexible channel name
|
||||
my @owg_fixed = ("A","B");
|
||||
my @owg_channel = ("A","B");
|
||||
@ -1171,14 +1171,14 @@ sub OWXCOUNT_GetPage($$) {
|
||||
if( $page == 14) {
|
||||
$owg_val[0] = $value;
|
||||
#-- parse float from midnight
|
||||
$owg_str =~ /([\d\.]+)/;
|
||||
$owg_str =~ s/[^\d\.]+//g;
|
||||
$owg_str = int($owg_str*100)/100;
|
||||
$owg_str = 0.0 if(!(defined($owg_str)));
|
||||
$owg_midnight[0] = $owg_str;
|
||||
}elsif( $page == 15) {
|
||||
$owg_val[1] = $value;
|
||||
#-- parse float from midnight
|
||||
$owg_str =~ /([\d\.]+)/;
|
||||
$owg_str =~ s/[^\d\.]+//g;
|
||||
$owg_str = int($owg_str*100)/100;
|
||||
$owg_str = 0.0 if(!(defined($owg_str)));
|
||||
$owg_midnight[1] = $owg_str;
|
||||
|
Loading…
Reference in New Issue
Block a user