mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 17:42:48 +00:00
reorder determineMode() checks
This commit is contained in:
parent
c0a3b20aa3
commit
1032e16ea4
@ -99,7 +99,7 @@ bool EInkDynamicDisplay::update()
|
|||||||
if (refreshApproved) {
|
if (refreshApproved) {
|
||||||
EInkDisplay::forceDisplay(0); // Bypass base class' own rate-limiting system
|
EInkDisplay::forceDisplay(0); // Bypass base class' own rate-limiting system
|
||||||
storeAndReset(); // Store the result of this loop for next time. Note: call *before* endOrDetach()
|
storeAndReset(); // Store the result of this loop for next time. Note: call *before* endOrDetach()
|
||||||
endOrDetach(); // endUpdate() right now, or set the async refresh flag (if FULL and HAS_EINK_ASYNC)
|
endOrDetach(); // endUpdate() right now, or set the async refresh flag (if FULL and HAS_EINK_ASYNCFULL)
|
||||||
} else
|
} else
|
||||||
storeAndReset(); // No update, no post-update code, just store the results
|
storeAndReset(); // No update, no post-update code, just store the results
|
||||||
|
|
||||||
@ -158,11 +158,11 @@ bool EInkDynamicDisplay::determineMode()
|
|||||||
// Once mode determined, any remaining checks will bypass
|
// Once mode determined, any remaining checks will bypass
|
||||||
checkCosmetic();
|
checkCosmetic();
|
||||||
checkDemandingFast();
|
checkDemandingFast();
|
||||||
|
checkFrameMatchesPrevious();
|
||||||
|
checkConsecutiveFastRefreshes();
|
||||||
#ifdef EINK_LIMIT_GHOSTING_PX
|
#ifdef EINK_LIMIT_GHOSTING_PX
|
||||||
checkExcessiveGhosting();
|
checkExcessiveGhosting();
|
||||||
#endif
|
#endif
|
||||||
checkFrameMatchesPrevious();
|
|
||||||
checkConsecutiveFastRefreshes();
|
|
||||||
checkFastRequested();
|
checkFastRequested();
|
||||||
|
|
||||||
if (refresh == UNSPECIFIED)
|
if (refresh == UNSPECIFIED)
|
||||||
|
Loading…
Reference in New Issue
Block a user