correcting next to return on error conditions

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

View File

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