changed chime

(cherry picked from commit 8ff6bd9cae)
This commit is contained in:
tofasthacker 2023-10-06 21:04:42 -04:00 committed by Josh
parent e17fe02342
commit 0177cf7503
2 changed files with 13 additions and 1 deletions

View File

@ -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();

View File

@ -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;
}; };
} }