Skip to content

Commit

Permalink
Merge pull request #96 from krkeegan/hop_tracking
Browse files Browse the repository at this point in the history
Add Debug Message for new Hop Count Added to Hop Array
  • Loading branch information
krkeegan committed Feb 26, 2013
2 parents e488f50 + 17c9900 commit 9705212
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Insteon/BaseInsteon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ sub default_hop_count
{
my ($self, $hop_count) = @_;
unshift(@{$$self{hop_array}}, $$self{default_hop_count}) if (!defined(@{$$self{hop_array}}));
unshift(@{$$self{hop_array}}, $hop_count) if defined($hop_count);
if (defined($hop_count)){
::print_log("[Insteon::BaseObject] DEBUG3: Adding hop count of " . $hop_count . " to hop_array of "
. $self->get_object_name) if $main::Debug{insteon} >= 3;
unshift(@{$$self{hop_array}}, $hop_count)
}
pop(@{$$self{hop_array}}) if (scalar(@{$$self{hop_array}}) >20);
my $high = 0;
foreach (@{$$self{hop_array}}){
Expand Down

0 comments on commit 9705212

Please sign in to comment.