Skip to content

Commit

Permalink
xPL messages generate invalid msg-type
Browse files Browse the repository at this point in the history
The Generic_Item code is calling sendXpl with the message type of
"xpl-stat",  however sendXpl adds the xpl- prefix as well, resulting in
an invalid message type.
  • Loading branch information
gac410 committed Mar 2, 2014
1 parent 5ce062c commit 3bd8d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Generic_Item.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ sub reset_states2 {
{name => $$ref{object_name}, state => $state, state_prev => $$ref{state_prev}, set_by => $set_by, mh_target => $target});
}
if ($send_xpl and $set_by !~ /^xpl/i) {
&xPL::sendXpl('mhouse.item', 'xpl-stat', 'mhouse.item' =>
&xPL::sendXpl('mhouse.item', 'stat', 'mhouse.item' =>
{name => $$ref{object_name}, state => $state, state_prev => $$ref{state_prev}, set_by => $set_by, mh_target => $target});
}

Expand Down

0 comments on commit 3bd8d8c

Please sign in to comment.