From e53e4ed23c54b6ecdd32691a618912b9158161fe Mon Sep 17 00:00:00 2001 From: codingjourney Date: Sat, 14 Dec 2024 07:27:56 +0100 Subject: tightened declarations of integer fields --- src/displayapp/screens/StopWatch.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/displayapp/screens/StopWatch.h') diff --git a/src/displayapp/screens/StopWatch.h b/src/displayapp/screens/StopWatch.h index 249eec84..3e8d9e73 100644 --- a/src/displayapp/screens/StopWatch.h +++ b/src/displayapp/screens/StopWatch.h @@ -13,11 +13,11 @@ namespace Pinetime::Applications { namespace Screens { struct TimeSeparated { - int hours; - int mins; - int secs; - int hundredths; - int epochSecs; + uint16_t hours; + uint8_t mins; + uint8_t secs; + uint8_t hundredths; + uint32_t epochSecs; }; class StopWatch : public Screen { @@ -46,7 +46,7 @@ namespace Pinetime::Applications { Pinetime::System::WakeLock wakeLock; Controllers::StopWatchController& stopWatchController; TickType_t blinkTime = 0; - int displayedLaps = 3; + uint8_t displayedLaps = 3; lv_obj_t *time, *msecTime, *btnPlayPause, *btnStopLap, *txtPlayPause, *txtStopLap; lv_obj_t* lapText; Utility::DirtyValue renderedSeconds; -- cgit v1.2.3-70-g09d2