2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

44_S7: Fix for S5 blockread, fix for Intervall attribute

git-svn-id: https://svn.fhem.de/fhem/trunk@14697 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
charlie71 2017-07-13 04:36:34 +00:00
parent 990591cf00
commit bd3984d0b1
2 changed files with 3 additions and 2 deletions

View File

@ -320,7 +320,7 @@ sub S7_Attr(@) {
Log3( $name, 3, "$name S7_Attr: setting MaxReadLength= $aVal" );
}
} elsif ($aName eq "MaxMessageLength") {
} elsif ($aName eq "Intervall") {
if ( $aVal >= 1 ) {
$hash->{Interval} = $aVal;

View File

@ -56,6 +56,7 @@ sub new {
$self->{__davet121003} = [ 0x12, &DLE, &ETX ];
$self->{PDULength} = &MaxPduSize;
$self->{MaxReadLength} = ($self->{PDULength} - 18);
#my @__davet1006 = ( &DLE, &ACK );
@ -837,4 +838,4 @@ sub S5WriteS5Bytes($$$$$$) {
=end html_DE
=cut
=cut