Skip to content

Commit 32f93d8

Browse files
committed
Fix ChannelEvent Routing
Was checking the wrong field
1 parent f68a3ac commit 32f93d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MainClasses/ANTPLUS_AntPlusRouter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void AntPlusRouter::onCapabilities(Capabilities& msg) {
154154
}
155155

156156
void AntPlusRouter::onChannelEventResponse(ChannelEventResponse& msg) {
157-
if (msg.getMsgId() == ANTPLUS_CHANNELEVENT_MESSAGECODE) {
157+
if (msg.getResponseMsgId() == ANTPLUS_CHANNELEVENT_MESSAGECODE) {
158158
uint8_t channel = msg.getChannelNumber();
159159
if (_profiles[channel]) {
160160
_profiles[channel]->onChannelEventResponse(msg);

0 commit comments

Comments
 (0)