parent
e17fe02342
commit
0177cf7503
@ -382,7 +382,18 @@ void DisplayApp::Refresh() {
|
|||||||
break;
|
break;
|
||||||
case Messages::Chime:
|
case Messages::Chime:
|
||||||
LoadNewScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None);
|
LoadNewScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None);
|
||||||
motorController.RunForDuration(35);
|
time_var = dateTimeController.Minutes();
|
||||||
|
if (time_var == 30){
|
||||||
|
NRF_LOG_INFO("Short: %d", time_var);
|
||||||
|
motorController.RunForDuration(25);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
NRF_LOG_INFO("Long: %d", time_var);
|
||||||
|
motorController.RunForDuration(200);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case Messages::OnChargingEvent:
|
case Messages::OnChargingEvent:
|
||||||
RestoreBrightness();
|
RestoreBrightness();
|
||||||
|
@ -134,6 +134,7 @@ namespace Pinetime {
|
|||||||
Utility::StaticStack<Apps, returnAppStackSize> returnAppStack;
|
Utility::StaticStack<Apps, returnAppStackSize> returnAppStack;
|
||||||
Utility::StaticStack<FullRefreshDirections, returnAppStackSize> appStackDirections;
|
Utility::StaticStack<FullRefreshDirections, returnAppStackSize> appStackDirections;
|
||||||
|
|
||||||
|
int time_var;
|
||||||
bool isDimmed = false;
|
bool isDimmed = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user