mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
MAX: format firmware field (by Jürgen)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4223 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
860fa97a16
commit
890ace12a6
@ -545,7 +545,7 @@ MAXLAN_Parse($$)
|
|||||||
my $dhash = $modules{MAX}{defptr}{$addr};
|
my $dhash = $modules{MAX}{defptr}{$addr};
|
||||||
if(defined($dhash)) {
|
if(defined($dhash)) {
|
||||||
readingsBeginUpdate($dhash);
|
readingsBeginUpdate($dhash);
|
||||||
readingsBulkUpdate($dhash, "firmware", $firmware);
|
readingsBulkUpdate($dhash, "firmware", sprintf("%u.%u",int($firmware/16),$firmware%16));
|
||||||
readingsBulkUpdate($dhash, "testresult", $testresult);
|
readingsBulkUpdate($dhash, "testresult", $testresult);
|
||||||
readingsEndUpdate($dhash, 1);
|
readingsEndUpdate($dhash, 1);
|
||||||
}
|
}
|
||||||
|
@ -329,7 +329,7 @@ CUL_MAX_Parse($$)
|
|||||||
my $dhash = CUL_MAX_DeviceHash($src);
|
my $dhash = CUL_MAX_DeviceHash($src);
|
||||||
if(defined($dhash)) {
|
if(defined($dhash)) {
|
||||||
readingsBeginUpdate($dhash);
|
readingsBeginUpdate($dhash);
|
||||||
readingsBulkUpdate($dhash, "firmware", $firmware);
|
readingsBulkUpdate($dhash, "firmware", sprintf("%u.%u",int($firmware/16),$firmware%16));
|
||||||
readingsBulkUpdate($dhash, "testresult", $testresult);
|
readingsBulkUpdate($dhash, "testresult", $testresult);
|
||||||
readingsEndUpdate($dhash, 1);
|
readingsEndUpdate($dhash, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user