@@ -22,7 +22,7 @@ use warnings;
22
22
use POSIX;
23
23
use Data::Dumper qw ( Dumper) ;
24
24
25
- our $VERSION = ' 2021-01-13 ' ;
25
+ our $VERSION = ' 2021-01-18 ' ;
26
26
27
27
my %models = (
28
28
' enjoy_motors_HS' => { Button => { ' stop' => ' 1000' ,
@@ -672,11 +672,14 @@ sub Set($$$@) {
672
672
Log3 $name , 5, " $ioname : SD_Keeloq_Set - Counter = $counter_send " ;
673
673
Log3 $name , 5, " $ioname : SD_Keeloq_Set - encoded (encrypt) = " .sprintf (" %032b" , $encoded )." \n " ;
674
674
675
- my $binsplit = SD_Keeloq_binsplit_JaroLift($bits ) if (AttrVal($name , " verbose" , " 3" ) eq " 5" );
676
-
677
675
Log3 $name , 5, " $ioname : SD_Keeloq_Set encoded <- | -> decrypts" ;
678
676
Log3 $name , 5, " $ioname : SD_Keeloq_Set Grp 0-7 |digitS/N| counter | ch | serial | bt |Grp 8-15" ;
679
- Log3 $name , 5, " $ioname : SD_Keeloq_Set - bits (send split) = $binsplit " ;
677
+
678
+ if (AttrVal($name , " verbose" , " 3" ) eq " 5" ) {
679
+ my $binsplit = SD_Keeloq_binsplit_JaroLift($bits );
680
+ Log3 $name , 5, " $ioname : SD_Keeloq_Set - bits (send split) = $binsplit " ;
681
+ }
682
+
680
683
Log3 $name , 5, " $ioname : SD_Keeloq_Set - bits (send) = $bits " ;
681
684
Log3 $name , 4, " $ioname : SD_Keeloq_Set - sendMSG = $msg " ;
682
685
Log3 $name , 4, " ######## DEBUG SET - END ########" ;
@@ -980,12 +983,15 @@ sub Parse($$) {
980
983
($bit8to15 ) = @_ = ( reverse (substr ($bitData , 8 , 8)) , " encrypted" )[$encrypted ]; # without MasterMSB | MasterLSB encrypted
981
984
$bit64to71 = reverse (substr ($bitData , 64 , 8));
982
985
983
- $binsplit = SD_Keeloq_binsplit_JaroLift($bitData ) if (AttrVal($name , " verbose" , " 3" ) eq " 5" );
984
-
985
986
Log3 $name , 5, " $ioname : SD_Keeloq_Parse - typ = $model " ;
986
987
Log3 $name , 5, " $ioname : SD_Keeloq_Parse encoded <- | -> decrypts" ;
987
988
Log3 $name , 5, " $ioname : SD_Keeloq_Parse Grp 0-7 |digitS/N| counter | ch | serial | bt |Grp 8-15" ;
988
- Log3 $name , 5, " $ioname : SD_Keeloq_Parse - bitData = $binsplit " ;
989
+
990
+ if (AttrVal($name , " verbose" , " 3" ) eq " 5" ) {
991
+ $binsplit = SD_Keeloq_binsplit_JaroLift($bitData );
992
+ Log3 $name , 5, " $ioname : SD_Keeloq_Parse - bitData = $binsplit " ;
993
+ }
994
+
989
995
Log3 $name , 5, " $ioname : SD_Keeloq_Parse - bitData = |-> must be calculated! <-| " .reverse (substr ($bitData , 32 , 4)) ." " . reverse (substr ($bitData , 36 , 24)) ." " .$button ." " . $bit64to71 ;
990
996
991
997
my @groups8_15 = split //, reverse $bit64to71 ;
0 commit comments