mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 23:09:26 +00:00
12_HProtocolGateway: trim PMS-IB data
git-svn-id: https://svn.fhem.de/fhem/trunk@18766 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ee57dd3834
commit
8fb01308c2
@ -192,6 +192,7 @@ sub HProtocolGateway_ParseMessage($$) {
|
|||||||
|
|
||||||
# PMS-IB
|
# PMS-IB
|
||||||
if ( $sensorSystem eq "PMS-IB") {
|
if ( $sensorSystem eq "PMS-IB") {
|
||||||
|
$data =~ s/^\s+//;
|
||||||
($tanknumber,$error,$temperature,$tankdata,$water,$checksum)=split(/=/,$data);
|
($tanknumber,$error,$temperature,$tankdata,$water,$checksum)=split(/=/,$data);
|
||||||
$test = substr($data, 0, length($data)-3);
|
$test = substr($data, 0, length($data)-3);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user