mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
DevIo: beautify log msg for bin data
git-svn-id: https://svn.fhem.de/fhem/trunk@5388 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8b70962090
commit
bc7ca60ae9
@ -101,7 +101,7 @@ DevIo_SimpleWrite($$$)
|
||||
return if(!$hash);
|
||||
|
||||
my $name = $hash->{NAME};
|
||||
Log3 $name, 5, "SW: $msg";
|
||||
Log3 ($name, 5, $ishex ? "SW: $msg" : "SW: ".unpack("H*",$msg));
|
||||
|
||||
$msg = pack('H*', $msg) if($ishex);
|
||||
$hash->{USBDev}->write($msg) if($hash->{USBDev});
|
||||
|
Loading…
Reference in New Issue
Block a user