MAX: format firmware field (by Jürgen)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4223 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user