Autor Thema: patch for 46_TRX_SECURITY.pm  (Gelesen 1298 mal)

Offline oliv06

  • Developer
  • Full Member
  • ****
  • Beiträge: 159
    • Play with Free : FHEM
patch for 46_TRX_SECURITY.pm
« am: 03 Mai 2014, 08:09:32 »
Hello Willi,
I just upgraded to last version. I had to patch it again in order to support the SD18 and COD18 sensors. Could you please replace two lines in your code? It has absolutly no side effect :

diff 46_TRX_SECURITY.pm.distrib 46_TRX_SECURITY.pm
241c241,242
<   if ($type eq "WD18" || $type eq "GD18" ) {
---
>  # if ($type eq "WD18" || $type eq "GD18" ) {
>   if ($type eq "WD18" || $type eq "GD18" || $type eq "SD18" || $type eq "COD18") {
248c249,250
<   if ($type ne "DS10A" && $type ne "SD90" && $type ne "MS10A" && $type ne "MS14A" && $type ne "KR18" && $type ne "KD101" && $type ne "VISONIC_WINDOW" && $type ne "VISONIC_MOTION" && $type ne "VISONIC_WINDOW_AUX" && $type ne "VISONIC_REMOTE" && $type ne "MEIANTECH" && $type ne "SA30" && $type ne "GD18" && $type ne "WD18") {
---
>   #if ($type ne "DS10A" && $type ne "SD90" && $type ne "MS10A" && $type ne "MS14A" && $type ne "KR18" && $type ne "KD101" && $type ne "VISONIC_WINDOW" && $type ne "VISONIC_MOTION" && $type ne "VISONIC_WINDOW_AUX" && $type ne "VISONIC_REMOTE" && $type ne "MEIANTECH" && $type ne "SA30" && $type ne "GD18" && $type ne "WD18") {
>   if ($type ne "DS10A" && $type ne "SD90" && $type ne "MS10A" && $type ne "MS14A" && $type ne "KR18" && $type ne "KD101" && $type ne "VISONIC_WINDOW" && $type ne "VISONIC_MOTION" && $type ne "VISONIC_WINDOW_AUX" && $type ne "VISONIC_REMOTE" && $type ne "MEIANTECH" && $type ne "SA30" && $type ne "GD18" && $type ne "WD18" && $type ne "SD18" && $type ne "COD18") {

Thanks a lot
Olivier

 

decade-submarginal