Add Basic Overlay support to Usermods.
This commit is contained in:
@@ -17,7 +17,9 @@ void initCronixie()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* handleOverlays is essentially the equivalent of usermods.loop
|
||||
*/
|
||||
void handleOverlays()
|
||||
{
|
||||
initCronixie();
|
||||
@@ -111,8 +113,11 @@ void _overlayAnalogCountdown()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* All overlays should be moved to usermods
|
||||
*/
|
||||
void handleOverlayDraw() {
|
||||
usermods.handleOverlayDraw();
|
||||
if (!overlayCurrent) return;
|
||||
switch (overlayCurrent)
|
||||
{
|
||||
@@ -121,7 +126,6 @@ void handleOverlayDraw() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Support for the Cronixie clock
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user