parent
e17fe02342
commit
0177cf7503
@ -382,7 +382,18 @@ void DisplayApp::Refresh() {
|
||||
break;
|
||||
case Messages::Chime:
|
||||
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;
|
||||
case Messages::OnChargingEvent:
|
||||
RestoreBrightness();
|
||||
|
@ -134,6 +134,7 @@ namespace Pinetime {
|
||||
Utility::StaticStack<Apps, returnAppStackSize> returnAppStack;
|
||||
Utility::StaticStack<FullRefreshDirections, returnAppStackSize> appStackDirections;
|
||||
|
||||
int time_var;
|
||||
bool isDimmed = false;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user