2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 13:26:02 +00:00

correcting next to return on error conditions

git-svn-id: https://svn.fhem.de/fhem/trunk@705 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig 2010-08-16 20:52:33 +00:00
parent 2c44fafbba
commit df2db9e44f

View File

@ -632,14 +632,14 @@ OREGON_Parse($$)
my $checksum = $rec->{checksum}; my $checksum = $rec->{checksum};
if ($checksum && !$checksum->(\@rfxcom_data_array) ) { if ($checksum && !$checksum->(\@rfxcom_data_array) ) {
Log 3, "OREGON: ERROR: checksum error sensor_id=$sensor_id (bits=$bits)"; Log 3, "OREGON: ERROR: checksum error sensor_id=$sensor_id (bits=$bits)";
next; return;
} }
my $method = $rec->{method}; my $method = $rec->{method};
unless ($method) { unless ($method) {
Log 4, "OREGON: Possible message from Oregon part '$rec->{part}'"; Log 4, "OREGON: Possible message from Oregon part '$rec->{part}'";
Log 4, "OREGON: sensor_id=$sensor_id (bits=$bits)"; Log 4, "OREGON: sensor_id=$sensor_id (bits=$bits)";
next; return;
} }
my @res; my @res;