Skip to content

Commit ea22ed8

Browse files
committed
Handle Capabilities message
This was being waited for and tracked but was not actually handled. The result meant the router never learned the capabilities of the radio and was unable to dynamically allocate channels. This bug was discovered through testing with dynamic channels.
1 parent 1a811b0 commit ea22ed8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MainClasses/ANTPLUS_AntPlusRouter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ uint8_t AntPlusRouter::setDriver(BaseAntWithCallbacks* driver) {
4545
if (_ant->waitFor(cap, ANTPLUS_DRIVER_REQUEST_TIMEOUT)) {
4646
return ANTPLUS_MAX_CHANNEL_CHECK_FAILED;
4747
}
48+
_ant->getResponse().getCapabilitiesMsg(cap);
49+
onCapabilities(cap);
4850
return 0;
4951
}
5052

0 commit comments

Comments
 (0)