Skip to content
Snippets Groups Projects
Commit 7126cd05 authored by Fabrice Weinberg's avatar Fabrice Weinberg
Browse files

Implement setLoadingDrawFunction. Fixes #102

parent fcf7e115
No related branches found
No related tags found
No related merge requests found
...@@ -116,6 +116,10 @@ void OLEDDisplayUi::setOverlays(OverlayCallback* overlayFunctions, uint8_t overl ...@@ -116,6 +116,10 @@ void OLEDDisplayUi::setOverlays(OverlayCallback* overlayFunctions, uint8_t overl
// -/----- Loading Process -----\- // -/----- Loading Process -----\-
void OLEDDisplayUi::setLoadingDrawFunction(LoadingDrawFunction loadingDrawFunction) {
this->loadingDrawFunction = loadingDrawFunction;
}
void OLEDDisplayUi::runLoadingProcess(LoadingStage* stages, uint8_t stagesCount) { void OLEDDisplayUi::runLoadingProcess(LoadingStage* stages, uint8_t stagesCount) {
uint8_t progress = 0; uint8_t progress = 0;
uint8_t increment = 100 / stagesCount; uint8_t increment = 100 / stagesCount;
......
...@@ -322,7 +322,7 @@ void setOverlays(OverlayCallback* overlayFunctions, uint8_t overlayCount); ...@@ -322,7 +322,7 @@ void setOverlays(OverlayCallback* overlayFunctions, uint8_t overlayCount);
* Set the function that will draw each step * Set the function that will draw each step
* in the loading animation * in the loading animation
*/ */
void setLoadingDrawFunction(LoadingDrawFunction stage); void setLoadingDrawFunction(LoadingDrawFunction loadingDrawFunction);
/** /**
* Run the loading process * Run the loading process
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment