diff --git a/FHEM/00_MAXLAN.pm b/FHEM/00_MAXLAN.pm index 2d18024ef..2bbc6baa3 100755 --- a/FHEM/00_MAXLAN.pm +++ b/FHEM/00_MAXLAN.pm @@ -545,7 +545,7 @@ MAXLAN_Parse($$) my $dhash = $modules{MAX}{defptr}{$addr}; if(defined($dhash)) { readingsBeginUpdate($dhash); - readingsBulkUpdate($dhash, "firmware", $firmware); + readingsBulkUpdate($dhash, "firmware", sprintf("%u.%u",int($firmware/16),$firmware%16)); readingsBulkUpdate($dhash, "testresult", $testresult); readingsEndUpdate($dhash, 1); } diff --git a/FHEM/14_CUL_MAX.pm b/FHEM/14_CUL_MAX.pm index 938ab161e..7a98ea450 100644 --- a/FHEM/14_CUL_MAX.pm +++ b/FHEM/14_CUL_MAX.pm @@ -329,7 +329,7 @@ CUL_MAX_Parse($$) my $dhash = CUL_MAX_DeviceHash($src); if(defined($dhash)) { readingsBeginUpdate($dhash); - readingsBulkUpdate($dhash, "firmware", $firmware); + readingsBulkUpdate($dhash, "firmware", sprintf("%u.%u",int($firmware/16),$firmware%16)); readingsBulkUpdate($dhash, "testresult", $testresult); readingsEndUpdate($dhash, 1); }