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

77_SMAEM.pm: contrib 3.5.0

git-svn-id: https://svn.fhem.de/fhem/trunk@20731 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2019-12-13 16:15:32 +00:00
parent c6c78bbf94
commit 384c551064

View File

@ -314,8 +314,9 @@ sub SMAEM_Read ($) {
$hex =~ /.*90000000(.{6})5200000000$/; # Firmware Version extrahieren $hex =~ /.*90000000(.{6})5200000000$/; # Firmware Version extrahieren
if($1) { if($1) {
my $fw = hex($1); my $fw = $1;
$fw =~ s/^(.{2})(.{2})(.{2})/"$1.$2.$3"/e; $fw =~ /(.{2})(.{2})(.{2})/;
Log3 ($name, 1, "SMAEM $name - Firmware: ".hex($1).".".hex($2).".".hex($3));
$hash->{FIRMWARE} = $fw; $hash->{FIRMWARE} = $fw;
} }