mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
14_Hideki.pm: Fixed ParseFn is invalid message #msg533900
14_SD_WS.pm Fixed ParseFn is invalid message #msg533900 90_SIGNALduino_un.pm Fixed ParseFn is invalid message #msg533900 git-svn-id: https://svn.fhem.de/fhem/trunk@12722 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
738e81ba24
commit
831deef41a
@ -1,5 +1,8 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- bugix: 14_Hideki: fixed wrong return in ParseFn (msg533900)
|
||||||
|
14_SD_WS: fixed wrong return in ParseFn (msg533900)
|
||||||
|
90_SIGNALduino_un: fixed wrong return in ParseFn (msg533900)
|
||||||
- change: 93_DbRep: change of day aggregation
|
- change: 93_DbRep: change of day aggregation
|
||||||
- bugfix: 93_DbRep: Syntaxerror due to Forum #msg529312
|
- bugfix: 93_DbRep: Syntaxerror due to Forum #msg529312
|
||||||
- bugfix: 74_AMAD: 74_AMADautomagicFlowset_2.6.7.xml fix Problems with zero
|
- bugfix: 74_AMAD: 74_AMADautomagicFlowset_2.6.7.xml fix Problems with zero
|
||||||
|
@ -124,7 +124,7 @@ Hideki_Parse($$)
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
Log3 $iohash, 4, "$name Sensor Typ $sensorTyp not supported, please report sensor information!";
|
Log3 $iohash, 4, "$name Sensor Typ $sensorTyp not supported, please report sensor information!";
|
||||||
return "$name Sensor Typ $sensorTyp not supported, please report sensor information!";
|
return "";
|
||||||
}
|
}
|
||||||
my $longids = AttrVal($iohash->{NAME},'longids',0);
|
my $longids = AttrVal($iohash->{NAME},'longids',0);
|
||||||
if ( ($longids ne "0") && ($longids eq "1" || $longids eq "ALL" || (",$longids," =~ m/,$model,/)))
|
if ( ($longids ne "0") && ($longids eq "1" || $longids eq "ALL" || (",$longids," =~ m/,$model,/)))
|
||||||
|
@ -175,8 +175,8 @@ sub SD_WS_Parse($$)
|
|||||||
|
|
||||||
$SensorTyp=$decodingSubs{$protocol}{sensortype};
|
$SensorTyp=$decodingSubs{$protocol}{sensortype};
|
||||||
|
|
||||||
return "Prematch Error" && Log3 $iohash, 4, "$name decoded protocolid: $protocol ($SensorTyp) prematch error" if (!$decodingSubs{$protocol}{prematch}->( $rawData ));
|
return "" && Log3 $iohash, 4, "$name decoded protocolid: $protocol ($SensorTyp) prematch error" if (!$decodingSubs{$protocol}{prematch}->( $rawData ));
|
||||||
return "crc Error" && Log3 $iohash, 4, "$name decoded protocolid: $protocol ($SensorTyp) crc error" if (!$decodingSubs{$protocol}{crcok}->( $rawData ));
|
return "" && Log3 $iohash, 4, "$name decoded protocolid: $protocol ($SensorTyp) crc error" if (!$decodingSubs{$protocol}{crcok}->( $rawData ));
|
||||||
|
|
||||||
$id=$decodingSubs{$protocol}{id}->( $rawData,$bitData );
|
$id=$decodingSubs{$protocol}{id}->( $rawData,$bitData );
|
||||||
#my $temphex=$decodingSubs{$protocol}{temphex}->( $rawData,$bitData );
|
#my $temphex=$decodingSubs{$protocol}{temphex}->( $rawData,$bitData );
|
||||||
@ -191,13 +191,13 @@ sub SD_WS_Parse($$)
|
|||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Log3 $iohash, 4, "SD_WS_Parse_unknown: converted to bits: $bitData";
|
Log3 $iohash, 4, "SD_WS_Parse: unknown message, please report. converted to bits: $bitData";
|
||||||
return $dummyreturnvalue;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!defined($model)) {
|
if (!defined($model)) {
|
||||||
return $dummyreturnvalue;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $deviceCode;
|
my $deviceCode;
|
||||||
|
@ -308,11 +308,13 @@ SIGNALduino_un_Parse($$)
|
|||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return $dummyreturnvalue;
|
Log3 $hash, 4, $dummyreturnvalue;
|
||||||
|
|
||||||
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log3 $hash, 4, $dummyreturnvalue;
|
||||||
return $dummyreturnvalue; # This prevents unkown code Messages in our log
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user