diff --git a/OLEDDisplayUi.cpp b/OLEDDisplayUi.cpp index e78744299f6dbd0f6ef7155d6cef43208a0aa886..0e239478eaf18b3611692c153cf6dcb140175af1 100644 --- a/OLEDDisplayUi.cpp +++ b/OLEDDisplayUi.cpp @@ -116,6 +116,10 @@ void OLEDDisplayUi::setOverlays(OverlayCallback* overlayFunctions, uint8_t overl // -/----- Loading Process -----\- +void OLEDDisplayUi::setLoadingDrawFunction(LoadingDrawFunction loadingDrawFunction) { + this->loadingDrawFunction = loadingDrawFunction; +} + void OLEDDisplayUi::runLoadingProcess(LoadingStage* stages, uint8_t stagesCount) { uint8_t progress = 0; uint8_t increment = 100 / stagesCount; diff --git a/README.md b/README.md index a63d4ba8927a44ce6c8cefc3c36da7584791e66b..c7daf526a7c7b52e1c61ee61506108a52543401d 100644 --- a/README.md +++ b/README.md @@ -322,7 +322,7 @@ void setOverlays(OverlayCallback* overlayFunctions, uint8_t overlayCount); * Set the function that will draw each step * in the loading animation */ -void setLoadingDrawFunction(LoadingDrawFunction stage); +void setLoadingDrawFunction(LoadingDrawFunction loadingDrawFunction); /** * Run the loading process