From 32af7ea27005889ff824027da991198bd4eef850 Mon Sep 17 00:00:00 2001 From: Michael Stovenour Date: Sun, 10 Feb 2013 21:27:36 -0600 Subject: [PATCH] PLM aldb not marked healthy Update so that adding a link to an empty PLM aldb marks the status as healthy vs. empty. Also add inuse flag so save/restore will keep the entry. --- lib/Insteon/AllLinkDatabase.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Insteon/AllLinkDatabase.pm b/lib/Insteon/AllLinkDatabase.pm index 668150d62..c98c46ea1 100755 --- a/lib/Insteon/AllLinkDatabase.pm +++ b/lib/Insteon/AllLinkDatabase.pm @@ -2161,6 +2161,8 @@ sub add_link $$self{aldb}{$linkkey}{data1} = lc $data1; $$self{aldb}{$linkkey}{data2} = lc $data2; $$self{aldb}{$linkkey}{data3} = lc $data3; + $$self{aldb}{$linkkey}{inuse} = 1; + $self->health('good') if($self->health() eq 'empty'); my $message = new Insteon::InsteonMessage('all_link_manage_rec', $$self{device}); $message->interface_data($cmd); if ($link_parms{callback})