File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ void setup()
30
30
ChannelRfFrequency crf;
31
31
OpenChannel oc;
32
32
33
- Serial1.begin (9600 );
33
+ Serial1.begin (BAUD_RATE );
34
34
// this will be moved into the driver eventually
35
35
#if defined(CORE_TEENSY)
36
36
Serial1.attachCts (20 );
@@ -89,7 +89,6 @@ void loop()
89
89
90
90
void parseMessage () {
91
91
ant.readPacket ();
92
- Serial.println (" " );
93
92
if (ant.getResponse ().isAvailable ()) {
94
93
uint8_t msgId = ant.getResponse ().getMsgId ();
95
94
switch (msgId) {
Original file line number Diff line number Diff line change @@ -123,12 +123,12 @@ BroadcastData::BroadcastData() : AntRxDataResponse() {
123
123
}
124
124
125
125
uint8_t BroadcastData::getChannelNumber () {
126
- return getData (0 );
126
+ return AntRxDataResponse:: getData (0 );
127
127
}
128
128
129
129
uint8_t BroadcastData::getData (uint8_t index) {
130
130
// skip channel byte
131
- return getData (index + 1 );
131
+ return AntRxDataResponse:: getData (index + 1 );
132
132
}
133
133
134
134
uint8_t BroadcastData::getExtendedDataLength () {
@@ -181,11 +181,11 @@ AntRxDataResponse::AntRxDataResponse() : AntResponse() {
181
181
}
182
182
183
183
uint8_t AntRxDataResponse::getData (int index) {
184
- return getFrameData ()[getDataOffset () + index];
184
+ return getFrameData ()[index];
185
185
}
186
186
187
187
uint8_t * AntRxDataResponse::getData () {
188
- return getFrameData () + getDataOffset () ;
188
+ return getFrameData ();
189
189
}
190
190
191
191
uint8_t AntRxDataResponse::getDataOffset () {
You can’t perform that action at this time.
0 commit comments