File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,10 @@ void OLEDDisplayUi::setAutoTransitionBackwards(){
6161 this ->lastTransitionDirection = -1 ;
6262}
6363void OLEDDisplayUi::setTimePerFrame (uint16_t time){
64- this ->ticksPerFrame = (int ) ( (float ) time / (float ) updateInterval);
64+ this ->ticksPerFrame = (uint16_t ) ( (float ) time / (float ) updateInterval);
6565}
6666void OLEDDisplayUi::setTimePerTransition (uint16_t time){
67- this ->ticksPerTransition = (int ) ( (float ) time / (float ) updateInterval);
67+ this ->ticksPerTransition = (uint16_t ) ( (float ) time / (float ) updateInterval);
6868}
6969
7070// -/------ Customize indicator position and style -------\-
@@ -190,7 +190,7 @@ OLEDDisplayUiState* OLEDDisplayUi::getUiState(){
190190
191191
192192int8_t OLEDDisplayUi::update (){
193- long frameStart = millis ();
193+ unsigned long frameStart = millis ();
194194 int8_t timeBudget = this ->updateInterval - (frameStart - this ->state .lastUpdate );
195195 if ( timeBudget <= 0 ) {
196196 // Implement frame skipping to ensure time budget is keept
You can’t perform that action at this time.
0 commit comments