correct PT2262 UNDEFINED receive

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3278 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig
2013-06-12 15:13:24 +00:00
parent a1ede8daa8
commit 219c2883e3

View File

@@ -734,6 +734,7 @@ sub TRX_LIGHT_parse_PT2262 {
Log 1, "TRX_LIGHT: PT2262 device_name=$device_name data=$hexdata" if ($TRX_LIGHT_debug == 1);
$def = $modules{TRX_LIGHT}{defptr}{$device_name};
if(!$def) {
$dev_reading = "";
Log 1, "UNDEFINED $device_name TRX_LIGHT $dev_type $device $dev_reading" if ($TRX_LIGHT_debug == 1);
Log 3, "TRX_LIGHT: TRX_LIGHT Unknown device $device_name, please define it";
return "UNDEFINED $device_name TRX_LIGHT $dev_type $device $dev_reading";