Skip to content

Commit

Permalink
Environment: Datapage: make datapage number public
Browse files Browse the repository at this point in the history
should be a no-op
  • Loading branch information
cujomalainey committed Feb 5, 2022
1 parent b82de3d commit 93fd186
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/Profiles/Environment/ANTPLUS_EnvironmentDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@

#define ANTPLUS_ENVIRONMENT_DEVICETYPE 25

#define ANTPLUS_ENVIRONMENT_DATAPAGE_ENVIRONMENT_GENERALINFORMATION_NUMBER 0

#define ANTPLUS_ENVIRONMENT_DATAPAGE_GENERALINFORMATION_SUPPORTEDPAGES_PAGE0SUPPORT 1
#define ANTPLUS_ENVIRONMENT_DATAPAGE_GENERALINFORMATION_SUPPORTEDPAGES_PAGE1SUPPORT 2


#define ANTPLUS_ENVIRONMENT_DATAPAGE_ENVIRONMENT_TEMPERATURE_NUMBER 1

#endif // ANTPLUS_ENVIRONMENTPROFILEDEFINES_h
3 changes: 0 additions & 3 deletions src/Profiles/Environment/ANTPLUS_EnvironmentPrivateDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@
// 45 / 2.5 = 18
#define ENVIRONMENT_SEARCHTIMEOUT 18

#define ENVIRONMENT_GENERALINFORMATION_NUMBER 0
#define ENVIRONMENT_TEMPERATURE_NUMBER 1

#endif // ANTPLUS_ENVIRONMENTPROFILEPRIVATEDEFINES_h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ bool ProfileEnvironmentDisplay::handleDataPage(EnvironmentBaseDataPage& dp) {
bool called = false;

switch (dataPage) {
case ENVIRONMENT_GENERALINFORMATION_NUMBER:
case ANTPLUS_ENVIRONMENT_DATAPAGE_ENVIRONMENT_GENERALINFORMATION_NUMBER:
called = handleGeneralInformation(dp);
break;
case ENVIRONMENT_TEMPERATURE_NUMBER:
case ANTPLUS_ENVIRONMENT_DATAPAGE_ENVIRONMENT_TEMPERATURE_NUMBER:
called = handleTemperature(dp);
break;
case ANTPLUS_COMMON_DATAPAGE_MANUFACTURERSINFORMATION_NUMBER:
Expand Down

0 comments on commit 93fd186

Please sign in to comment.