2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

14_SD_WS.pm: compare operator fixes

git-svn-id: https://svn.fhem.de/fhem/trunk@22414 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
sidey79 2020-07-16 20:21:25 +00:00
parent 83bc36e2b4
commit 64dfebbe55

View File

@ -865,14 +865,14 @@ sub SD_WS_Parse($$)
my $bitData = unpack("B$blen", pack("H$hlen", $rawData));
my $temptyp = substr($bitData,0,8);
if( $temptyp == "11111110" ) {
if( $temptyp eq '11111110' ) {
$rawData = SD_WS_WH2SHIFT($rawData);
$msg = $msg_vor.$rawData;
$bitData = unpack("B$blen", pack("H$hlen", $rawData));
Log3 $iohash, 4, "$name: SD_WS_WH2_1 msg=$msg length:".length($bitData) ;
Log3 $iohash, 4, "$name: SD_WS_WH2_1 bitdata: $bitData" ;
} else{
if ( $temptyp == "11111101" ) {
if ( $temptyp eq '11111101' ) {
$rawData = SD_WS_WH2SHIFT($rawData);
$rawData = SD_WS_WH2SHIFT($rawData);
$msg = $msg_vor.$rawData;
@ -882,7 +882,7 @@ sub SD_WS_Parse($$)
}
}
if( $temptyp == "11111111" ) {
if( $temptyp eq '11111111' ) {
$vorpre = 8;
}else{
Log3 $iohash, 4, "$name: SD_WS_WH2_4 Error kein WH2: Typ: $temptyp" ;