Skip to content

Commit

Permalink
14_SD_WS.pm
Browse files Browse the repository at this point in the history
Fixed some operators
  • Loading branch information
sidey79 committed Apr 15, 2020
1 parent ea7d0da commit e994338
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FHEM/14_SD_WS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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" ;
Expand Down

0 comments on commit e994338

Please sign in to comment.