mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
TRX_LIGHT: fix for FHEM2FHEM IOWrite
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1286 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8d4884fd78
commit
f756e0112e
@ -148,12 +148,12 @@ TRX_LIGHT_Set($@)
|
||||
my $seqnr = 0;
|
||||
my $cmnd = $i;
|
||||
|
||||
my $hex_command = sprintf "0710%02x%02x%02x%02x%02x00", $device_type_num, $seqnr, $house, $unit, $cmnd;
|
||||
my $hex_prefix = sprintf "0710";
|
||||
my $hex_command = sprintf "%02x%02x%02x%02x%02x00", $device_type_num, $seqnr, $house, $unit, $cmnd;
|
||||
Log 1,"TRX_LIGHT_Set name=$name device_type=$device_type, deviceid=$deviceid house=$house, unit=$unit command=$command" if ($TRX_LIGHT_debug == 1);
|
||||
Log 1,"TRX_LIGHT_Set hexline=$hex_command" if ($TRX_LIGHT_debug == 1);
|
||||
|
||||
#IOWrite($hash, pack('H*', $hex_command));
|
||||
IOWrite($hash, "", $hex_command);
|
||||
IOWrite($hash, $hex_prefix, $hex_command);
|
||||
|
||||
my $tn = TimeNow();
|
||||
$hash->{CHANGED}[0] = $command;
|
||||
|
Loading…
x
Reference in New Issue
Block a user