File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 77
88// State
99#define ANTPLUS_DRIVER_STATE_UNKNOWN 0
10+ #define ANTPLUS_DRIVER_STATE_STARTED 1
1011
1112// Reset
1213#define ANTPLUS_RESET_NO_WAIT_FOR_STARTUP 0
Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ void AntPlusRouter::resetRadio(uint8_t waitForStartup) {
8989 }
9090 send (rs);
9191 _radioStarted = ANTPLUS_DRIVER_STATE_UNKNOWN;
92+ if (waitForStartup == ANTPLUS_RESET_WAIT_FOR_STARTUP) {
93+ // TODO use driver wait for message once impletmented
94+ }
9295}
9396
9497void AntPlusRouter::onPacketError (uint8_t error) {
@@ -160,5 +163,5 @@ void AntPlusRouter::onSelectiveDataUpdateMaskSetting(SelectiveDataUpdateMaskSett
160163}
161164
162165void AntPlusRouter::onStartUpMessage (StartUpMessage& msg) {
163- // TODO
166+ _radioStarted = ANTPLUS_DRIVER_STATE_STARTED;
164167}
You can’t perform that action at this time.
0 commit comments