Skip to content

Commit 59a5074

Browse files
committed
Router: Reset radio before clearing reference
Gotta have a driver to reset the hardware.
1 parent fad45f8 commit 59a5074

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
@@ -126,10 +126,10 @@ void AntPlusRouter::loop() {
126126
}
127127

128128
void AntPlusRouter::reset() {
129+
resetRadio(ANTPLUS_RESET_WAIT_FOR_STARTUP);
129130
_ant = NULL;
130131
_networkKey = NULL;
131132
_maxChannels = 0;
132-
resetRadio(ANTPLUS_RESET_WAIT_FOR_STARTUP);
133133
for (uint8_t i = 0; i < ANTPLUS_MAX_CHANNELS_POSSIBLE; i++) {
134134
if (_profiles[i]) {
135135
// profile stopped in resetRadio

0 commit comments

Comments
 (0)