stopwatch: Add hours tracking (#1692)

Stopwatch application : add hours tracking

---------

Co-authored-by: fossison <fossison@mailbox.org>
Co-authored-by: Jean-François Milants <jf@codingfield.com>
This commit is contained in:
fossison 2023-04-16 06:55:49 -07:00 committed by GitHub
parent 5d45392453
commit d472a71078
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 4 deletions

View file

@ -13,6 +13,7 @@ namespace Pinetime::Applications::Screens {
enum class States { Init, Running, Halted };
struct TimeSeparated_t {
int hours;
int mins;
int secs;
int hundredths;
@ -48,6 +49,7 @@ namespace Pinetime::Applications::Screens {
int lapsDone = 0;
lv_obj_t *time, *msecTime, *btnPlayPause, *btnStopLap, *txtPlayPause, *txtStopLap;
lv_obj_t* lapText;
bool isHoursLabelUpdated = false;
lv_task_t* taskRefresh;
};