mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 23:09:26 +00:00
00_TCM: processing of baseID changed
git-svn-id: https://svn.fhem.de/fhem/trunk@24387 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f056409e5d
commit
22a0b12e97
@ -140,13 +140,14 @@ sub TCM_InitSerialCom($) {
|
||||
my @getBaseID = ("get", "baseID");
|
||||
if (TCM_Get($hash, @getBaseID) =~ /[Ff]{2}[\dA-Fa-f]{6}/) {
|
||||
$baseID = sprintf "%08X", hex $&;
|
||||
$baseID = $baseID eq 'F' x 8 ? '0' x 8 : $baseID;
|
||||
$attr{$name}{".baseIDSaved"} = $baseID;
|
||||
$hash->{BaseID} = $baseID;
|
||||
$hash->{LastID} = sprintf "%08X", (hex $&) + 127;
|
||||
$hash->{LastID} = sprintf "%08X", (hex $baseID) + 127;
|
||||
} else {
|
||||
$baseID = AttrVal($name, ".baseIDSaved", '0' x 8);
|
||||
$hash->{BaseID} = $baseID;
|
||||
$hash->{LastID} = $baseID eq '0' x 8 ? '0' x 8 : sprintf("%08X", (hex $baseID) + 127);
|
||||
$hash->{LastID} = sprintf("%08X", (hex $baseID) + 127);
|
||||
}
|
||||
}
|
||||
if (defined $baseID) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user