static int grab(displayPort_t *displayPort) { // FIXME this should probably not have a dependency on the OSD or OSD slave code UNUSED(displayPort); #ifdef USE_OSD osdResetAlarms(); resumeRefreshAt = 0; #endif return 0; }
void osdOpenMenu(void) { if (inMenu) return; if (feature(FEATURE_LED_STRIP)) featureLedstrip = 1; if (feature(FEATURE_BLACKBOX)) featureBlackbox = 1; #if defined(VTX) || defined(USE_RTC6705) if (feature(FEATURE_VTX)) featureVtx = 1; #endif // VTX || USE_RTC6705 #ifdef VTX vtxBand = masterConfig.vtxBand; vtxChannel = masterConfig.vtx_channel + 1; #endif // VTX #ifdef USE_RTC6705 vtxBand = masterConfig.vtx_channel / 8; vtxChannel = masterConfig.vtx_channel % 8 + 1; #endif // USE_RTC6705 osdRows = max7456GetRowsCount(); inMenu = true; refreshTimeout = 0; max7456ClearScreen(); currentMenu = &menuMain[0]; osdResetAlarms(); osdChangeScreen(currentMenu); #ifdef LED_STRIP getLedColor(); #endif // LED_STRIP }