2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-27 10:37:13 +00:00

reload devices.xml if unknown device is encountered

git-svn-id: https://svn.fhem.de/fhem/trunk@3596 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2013-08-05 19:23:49 +00:00
parent 5e27d0948d
commit 1b19519daf

View File

@ -794,6 +794,7 @@ SWAP_Parse($$)
return undef if( $raddr eq "00" );
$rname = SWAP_findFreeAddress($hash,$raddr) if( $raddr eq "FF" ); #use next free addr as name -> consistent name after change below
($developers,$products) = SWAP_loadDevices() if( $reg == 0x00 && defined($modules{"SWAP_$data"}) );
return "UNDEFINED SWAP_$rname SWAP_$data $raddr $data" if( $reg == 0x00 && defined($modules{"SWAP_$data"}) );
return "UNDEFINED SWAP_$rname SWAP $raddr $data" if( $reg == 0x00 );
return "UNDEFINED SWAP_$rname SWAP $raddr";