2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 06:48:43 +00:00

correct PT2262 UNDEFINED receive

git-svn-id: https://svn.fhem.de/fhem/trunk@3278 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig 2013-06-12 15:13:24 +00:00
parent 7f8644cfd7
commit be120b3d66

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";