2
0
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:
ntruchsess 2014-03-31 16:32:25 +00:00
parent 8b70962090
commit bc7ca60ae9

View File

@ -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});