1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

@jflyper gave a recommendation to improve PR #3568 to remove hardcoded strings for firmware revision--implemented.

~ Charlie Stevenson
This commit is contained in:
brucesdad13@gmail.com 2017-07-19 23:47:44 -04:00
parent 78ded9e6f7
commit 3c010c98d0

View file

@ -572,20 +572,20 @@ static void showDebugPage(void)
#endif
static const pageEntry_t pages[PAGE_COUNT] = {
{ PAGE_WELCOME, "BETAFLIGHT", showWelcomePage, PAGE_FLAGS_SKIP_CYCLING },
{ PAGE_ARMED, "ARMED", showArmedPage, PAGE_FLAGS_SKIP_CYCLING },
{ PAGE_PROFILE, "PROFILE", showProfilePage, PAGE_FLAGS_NONE },
{ PAGE_WELCOME, FC_FIRMWARE_NAME, showWelcomePage, PAGE_FLAGS_SKIP_CYCLING },
{ PAGE_ARMED, "ARMED", showArmedPage, PAGE_FLAGS_SKIP_CYCLING },
{ PAGE_PROFILE, "PROFILE", showProfilePage, PAGE_FLAGS_NONE },
#ifdef GPS
{ PAGE_GPS, "GPS", showGpsPage, PAGE_FLAGS_NONE },
{ PAGE_GPS, "GPS", showGpsPage, PAGE_FLAGS_NONE },
#endif
{ PAGE_RX, "RX", showRxPage, PAGE_FLAGS_NONE },
{ PAGE_BATTERY, "BATTERY", showBatteryPage, PAGE_FLAGS_NONE },
{ PAGE_SENSORS, "SENSORS", showSensorsPage, PAGE_FLAGS_NONE },
{ PAGE_RX, "RX", showRxPage, PAGE_FLAGS_NONE },
{ PAGE_BATTERY, "BATTERY", showBatteryPage, PAGE_FLAGS_NONE },
{ PAGE_SENSORS, "SENSORS", showSensorsPage, PAGE_FLAGS_NONE },
#ifndef SKIP_TASK_STATISTICS
{ PAGE_TASKS, "TASKS", showTasksPage, PAGE_FLAGS_NONE },
{ PAGE_TASKS, "TASKS", showTasksPage, PAGE_FLAGS_NONE },
#endif
#ifdef ENABLE_DEBUG_DASHBOARD_PAGE
{ PAGE_DEBUG, "DEBUG", showDebugPage, PAGE_FLAGS_NONE },
{ PAGE_DEBUG, "DEBUG", showDebugPage, PAGE_FLAGS_NONE },
#endif
};