Skip to content

Commit fd43f0d

Browse files
committed
isDataPageValid() changed
1 parent b093d80 commit fd43f0d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/Profiles/MuscleOxygen/Monitor/ANTPLUS_ProfileMuscleOxygenMonitor.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ void ProfileMuscleOxygenMonitor::setChannelConfig() {
1717
setSearchTimeout(ANTPLUS_MUSCLEOXYGEN_SEARCHTIMEOUT);
1818
}
1919

20+
bool ProfileMuscleOxygenMonitor::isDataPageValid(uint8_t dataPage) {
21+
switch (dataPage) {
22+
case ANTPLUS_MUSCLEOXYGEN_DATAPAGE_MUSCLEOXYGENDATA_NUMBER:
23+
return true;
24+
// TODO other datapages
25+
}
26+
return false;
27+
}
28+
2029
void ProfileMuscleOxygenMonitor::transmitNextDataPage() {
2130
// some static aux messages
2231
const uint8_t manufacturer[] = { 0x50, 0xFF, 0xFF, 0x01, 0x0F, 0x00, 0x85, 0x83 };

src/Profiles/MuscleOxygen/Monitor/ANTPLUS_ProfileMuscleOxygenMonitor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ProfileMuscleOxygenMonitor : public BaseMasterProfile {
1717

1818
protected:
1919
virtual void transmitNextDataPage();
20-
virtual bool isDataPageValid(uint8_t dataPage) { return true; }
20+
virtual bool isDataPageValid(uint8_t dataPage);
2121

2222
private:
2323
void setChannelConfig();

0 commit comments

Comments
 (0)