Skip to content

Commit

Permalink
[nrfconnect] Fixed sending light switch off command (#17110)
Browse files Browse the repository at this point in the history
There is a bug that results in sending on command id after
invoking off command.

Fixed a bug to send off command id.

Tested manually that that sent command ids are correct.
  • Loading branch information
kkasperczyk-no authored Apr 6, 2022
1 parent 56f738f commit cd29bba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void BindingHandler::OnOffProcessCommand(CommandId aCommandId, const EmberBindin
else
{
Messaging::ExchangeManager & exchangeMgr = Server::GetInstance().GetExchangeManager();
ret = Controller::InvokeGroupCommandRequest(&exchangeMgr, aBinding.fabricIndex, aBinding.groupId, onCommand);
ret = Controller::InvokeGroupCommandRequest(&exchangeMgr, aBinding.fabricIndex, aBinding.groupId, offCommand);
}
break;
default:
Expand Down

0 comments on commit cd29bba

Please sign in to comment.