mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
10:ZWave.pm: remove warning
git-svn-id: https://svn.fhem.de/fhem/trunk@19876 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
07c78c66b1
commit
5337400b51
@ -5463,7 +5463,7 @@ ZWave_firmwareUpdateSendSingleReport($)
|
|||||||
my $dataLength = $l - $off > hex($reportSize) ? hex($reportSize) : $l - $off;
|
my $dataLength = $l - $off > hex($reportSize) ? hex($reportSize) : $l - $off;
|
||||||
my $last = $l - $off <= hex($reportSize) ? 1 : 0;
|
my $last = $l - $off <= hex($reportSize) ? 1 : 0;
|
||||||
my $dataToSend = substr($hash->{FW_UPDATE_DATA}->{CONTENT}, $off * 2, $dataLength * 2); #one byte -> two positions in string
|
my $dataToSend = substr($hash->{FW_UPDATE_DATA}->{CONTENT}, $off * 2, $dataLength * 2); #one byte -> two positions in string
|
||||||
my $nextReport = $nextReport | $last << 15;
|
$nextReport = $nextReport | $last << 15;
|
||||||
my $reportCmd = "06".sprintf("%04x",$nextReport).sprintf("%s",$dataToSend);
|
my $reportCmd = "06".sprintf("%04x",$nextReport).sprintf("%s",$dataToSend);
|
||||||
Log3 $hash, 3, "ZWave_firmwareUpdateSendSingleReport: sending report: $nextReport";
|
Log3 $hash, 3, "ZWave_firmwareUpdateSendSingleReport: sending report: $nextReport";
|
||||||
if($classVersion >= 2)
|
if($classVersion >= 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user