mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Fix dashboard initialization order
This commit is contained in:
parent
a573c8972a
commit
c172ab3193
1 changed files with 6 additions and 11 deletions
|
@ -901,17 +901,6 @@ void init(void)
|
||||||
|
|
||||||
batteryInit(); // always needs doing, regardless of features.
|
batteryInit(); // always needs doing, regardless of features.
|
||||||
|
|
||||||
#ifdef USE_DASHBOARD
|
|
||||||
if (featureIsEnabled(FEATURE_DASHBOARD)) {
|
|
||||||
#ifdef USE_OLED_GPS_DEBUG_PAGE_ONLY
|
|
||||||
dashboardShowFixedPage(PAGE_GPS);
|
|
||||||
#else
|
|
||||||
dashboardResetPageCycling();
|
|
||||||
dashboardEnablePageCycling();
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef USE_RCDEVICE
|
#ifdef USE_RCDEVICE
|
||||||
rcdeviceInit();
|
rcdeviceInit();
|
||||||
#endif // USE_RCDEVICE
|
#endif // USE_RCDEVICE
|
||||||
|
@ -1003,6 +992,12 @@ void init(void)
|
||||||
// Dashbord will register with CMS by itself.
|
// Dashbord will register with CMS by itself.
|
||||||
if (featureIsEnabled(FEATURE_DASHBOARD)) {
|
if (featureIsEnabled(FEATURE_DASHBOARD)) {
|
||||||
dashboardInit();
|
dashboardInit();
|
||||||
|
#ifdef USE_OLED_GPS_DEBUG_PAGE_ONLY
|
||||||
|
dashboardShowFixedPage(PAGE_GPS);
|
||||||
|
#else
|
||||||
|
dashboardResetPageCycling();
|
||||||
|
dashboardEnablePageCycling();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue