Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insteon: Clear No_Hop_Flag Even If No Debug; Don't Call Setby if Undef #166

Merged
merged 1 commit into from
May 21, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/Insteon/Message.pm
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ sub send
$self->setby->default_hop_count($self->setby->default_hop_count + 1);
}
}
elsif (defined($$self{no_hop_increase}) && $main::Debug{insteon}
elsif (defined($$self{no_hop_increase}) && ref $self->setby
&& $self->setby->isa('Insteon::BaseObject')){
&main::print_log("[Insteon::BaseMessage] Hop count not increased for "
. $self->setby->get_object_name . " because no_hop_increase flag was set.");
. $self->setby->get_object_name . " because no_hop_increase flag was set.")
if $main::Debug{insteon};
$$self{no_hop_increase} = undef;
}
}
Expand Down