From 8132b3445f4de813ce247251b4ebb12de8f83b69 Mon Sep 17 00:00:00 2001 From: wherzig <> Date: Mon, 16 Aug 2010 20:52:33 +0000 Subject: [PATCH] correcting next to return on error conditions git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@705 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/41_OREGON.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FHEM/41_OREGON.pm b/FHEM/41_OREGON.pm index bef8a20fc..12b00d04d 100755 --- a/FHEM/41_OREGON.pm +++ b/FHEM/41_OREGON.pm @@ -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;