From 34c42ad7581ea4694eebe45b5c476934393272ad Mon Sep 17 00:00:00 2001 From: KRKeegan Date: Tue, 5 Feb 2013 20:22:08 -0800 Subject: [PATCH] Add_Link Change ALDB Health from Empty to Good If we can add a link, the ALDB health cannot be corrupt. If aldb health is not updated to good from empty, log links will never print the link table. Fixes hollie/misterhouse#59 --- lib/Insteon/AllLinkDatabase.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Insteon/AllLinkDatabase.pm b/lib/Insteon/AllLinkDatabase.pm index 5ef2358ed..3659fa6ae 100755 --- a/lib/Insteon/AllLinkDatabase.pm +++ b/lib/Insteon/AllLinkDatabase.pm @@ -257,6 +257,7 @@ sub _on_poke $$self{aldb}{$aldbkey}{deviceid} = lc $$self{pending_aldb}{deviceid}; $$self{aldb}{$aldbkey}{group} = lc $$self{pending_aldb}{group}; $$self{aldb}{$aldbkey}{address} = $$self{pending_aldb}{address}; + $self->health("good"); } # clear out mem_activity flag $$self{_mem_activity} = undef;