mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 14:58:12 +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:
@@ -126,11 +126,7 @@ class SettingsScreen : public UIScreen {
|
||||
return item == SECTION_DISPLAY || item == SECTION_SOUND ||
|
||||
item == SECTION_HOME_PAGES ||
|
||||
item == SECTION_RADIO || item == SECTION_SYSTEM ||
|
||||
item == SECTION_CONTACTS || item == SECTION_MESSAGES
|
||||
#if ENV_INCLUDE_GPS == 1
|
||||
|| item == SECTION_GPS
|
||||
#endif
|
||||
;
|
||||
item == SECTION_CONTACTS || item == SECTION_MESSAGES;
|
||||
}
|
||||
|
||||
const char* sectionName(int item) const {
|
||||
@@ -141,9 +137,6 @@ class SettingsScreen : public UIScreen {
|
||||
if (item == SECTION_SYSTEM) return "System";
|
||||
if (item == SECTION_CONTACTS) return "Contacts";
|
||||
if (item == SECTION_MESSAGES) return "Messages";
|
||||
#if ENV_INCLUDE_GPS == 1
|
||||
if (item == SECTION_GPS) return "GPS";
|
||||
#endif
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user