mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-02 02:06:11 +00:00
fix(build): drop SECTION_GPS references after the GPS section was removed
Earlier commits deleted the SECTION_GPS enum entry along with its only remaining child (Trail dist moved to the Trail tool), but isSection() and sectionName() still referenced it under the ENV_INCLUDE_GPS guard. Both helpers no longer need a GPS case. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
d55ae5c2c5
commit
e32f0ba34d
@@ -126,11 +126,7 @@ class SettingsScreen : public UIScreen {
|
|||||||
return item == SECTION_DISPLAY || item == SECTION_SOUND ||
|
return item == SECTION_DISPLAY || item == SECTION_SOUND ||
|
||||||
item == SECTION_HOME_PAGES ||
|
item == SECTION_HOME_PAGES ||
|
||||||
item == SECTION_RADIO || item == SECTION_SYSTEM ||
|
item == SECTION_RADIO || item == SECTION_SYSTEM ||
|
||||||
item == SECTION_CONTACTS || item == SECTION_MESSAGES
|
item == SECTION_CONTACTS || item == SECTION_MESSAGES;
|
||||||
#if ENV_INCLUDE_GPS == 1
|
|
||||||
|| item == SECTION_GPS
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* sectionName(int item) const {
|
const char* sectionName(int item) const {
|
||||||
@@ -141,9 +137,6 @@ class SettingsScreen : public UIScreen {
|
|||||||
if (item == SECTION_SYSTEM) return "System";
|
if (item == SECTION_SYSTEM) return "System";
|
||||||
if (item == SECTION_CONTACTS) return "Contacts";
|
if (item == SECTION_CONTACTS) return "Contacts";
|
||||||
if (item == SECTION_MESSAGES) return "Messages";
|
if (item == SECTION_MESSAGES) return "Messages";
|
||||||
#if ENV_INCLUDE_GPS == 1
|
|
||||||
if (item == SECTION_GPS) return "GPS";
|
|
||||||
#endif
|
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user