Skip to content

Commit

Permalink
Insteon_FanLinc: Fix Level Error in Child Set Command
Browse files Browse the repository at this point in the history
Was incorrectly calling convert_level on a bad value
  • Loading branch information
krkeegan committed May 8, 2013
1 parent 3a1dd7b commit 2660b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Insteon/Lighting.pm
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ sub set
my $setby_name = $p_setby;
$setby_name = $p_setby->get_object_name() if (ref $p_setby and $p_setby->can('get_object_name'));
my $parent = $self->get_root();
$level = ::Insteon::DimmableLight::convert_level($p_state) if ($p_state ne '00' && $p_state ne 'ff');
$level = ::Insteon::DimmableLight::convert_level($level) if ($level ne '00' && $level ne 'ff');
my $extra = $level ."0200000000000000000000000000";
my $message = new Insteon::InsteonMessage('insteon_ext_send', $parent, 'on', $extra);
$parent->_send_cmd($message);
Expand Down

0 comments on commit 2660b55

Please sign in to comment.