Screenshots on X10 / X12S were not always working (thanks Lothar for the report)
This commit is contained in:
+10
-6
@@ -358,6 +358,11 @@ void guiMain(event_t evt)
|
|||||||
DEBUG_TIMER_STOP(debugTimerMenus);
|
DEBUG_TIMER_STOP(debugTimerMenus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mainRequestFlags & (1u << REQUEST_SCREENSHOT)) {
|
||||||
|
writeScreenshot();
|
||||||
|
mainRequestFlags &= ~(1u << REQUEST_SCREENSHOT);
|
||||||
|
}
|
||||||
|
|
||||||
if (refreshNeeded) {
|
if (refreshNeeded) {
|
||||||
DEBUG_TIMER_START(debugTimerLcdRefresh);
|
DEBUG_TIMER_START(debugTimerLcdRefresh);
|
||||||
lcdRefresh();
|
lcdRefresh();
|
||||||
@@ -365,7 +370,6 @@ void guiMain(event_t evt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif defined(GUI)
|
#elif defined(GUI)
|
||||||
|
|
||||||
void handleGui(event_t event) {
|
void handleGui(event_t event) {
|
||||||
// if Lua standalone, run it and don't clear the screen (Lua will do it)
|
// if Lua standalone, run it and don't clear the screen (Lua will do it)
|
||||||
// else if Lua telemetry view, run it and don't clear the screen
|
// else if Lua telemetry view, run it and don't clear the screen
|
||||||
@@ -463,6 +467,11 @@ void guiMain(event_t evt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
lcdRefresh();
|
lcdRefresh();
|
||||||
|
|
||||||
|
if (mainRequestFlags & (1 << REQUEST_SCREENSHOT)) {
|
||||||
|
writeScreenshot();
|
||||||
|
mainRequestFlags &= ~(1 << REQUEST_SCREENSHOT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -531,11 +540,6 @@ void perMain()
|
|||||||
DEBUG_TIMER_STOP(debugTimerGuiMain);
|
DEBUG_TIMER_STOP(debugTimerGuiMain);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (mainRequestFlags & (1 << REQUEST_SCREENSHOT)) {
|
|
||||||
writeScreenshot();
|
|
||||||
mainRequestFlags &= ~(1 << REQUEST_SCREENSHOT);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(PCBX9E) && !defined(SIMU)
|
#if defined(PCBX9E) && !defined(SIMU)
|
||||||
toplcdRefreshStart();
|
toplcdRefreshStart();
|
||||||
setTopFirstTimer(getValue(MIXSRC_FIRST_TIMER+g_model.toplcdTimer));
|
setTopFirstTimer(getValue(MIXSRC_FIRST_TIMER+g_model.toplcdTimer));
|
||||||
|
|||||||
Reference in New Issue
Block a user