From 5b5e776221bc1c3d3a8309e9cb4eb212455412d4 Mon Sep 17 00:00:00 2001 From: igors48 Date: Fri, 24 Jun 2022 07:48:09 +0300 Subject: [PATCH] #99 gesture pre detection doxygen and todos --- src/core/task/serviceProcedure.hpp | 2 +- src/core/task/touchScreenListener.hpp | 2 +- src/core/watch/watch.cpp | 5 ++++- src/core/watch/watch.hpp | 6 ++++++ src/main.cpp | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/core/task/serviceProcedure.hpp b/src/core/task/serviceProcedure.hpp index fd408cf..02fed73 100644 --- a/src/core/task/serviceProcedure.hpp +++ b/src/core/task/serviceProcedure.hpp @@ -8,7 +8,7 @@ typedef struct { void *watchMutex; - unsigned char lastBuzzHour; // todo service procedure is a singleton - state var can be moved to cpp file + unsigned char lastBuzzHour; // todo service procedure is a singleton - state var can be moved to cpp file #107 unsigned char lastStepCounterResetDay; RtcApi *rtcApi; BmaApi *bmaApi; diff --git a/src/core/task/touchScreenListener.hpp b/src/core/task/touchScreenListener.hpp index 6ff1181..7906480 100644 --- a/src/core/task/touchScreenListener.hpp +++ b/src/core/task/touchScreenListener.hpp @@ -6,7 +6,7 @@ #include "core/app/tiler.hpp" typedef struct { - Component *target; // todo listener is a singleton - state var can be moved to cpp file + Component *target; // todo listener is a singleton - state var can be moved to cpp file #106 signed short firstX; signed short firstY; signed short lastX; diff --git a/src/core/watch/watch.cpp b/src/core/watch/watch.cpp index 0badeeb..a746339 100644 --- a/src/core/watch/watch.cpp +++ b/src/core/watch/watch.cpp @@ -169,7 +169,10 @@ static bool getTouch(signed short &x, signed short &y) return watch->getTouch(x, y); } -void setBrightness(unsigned char level) +/** + * @copydoc WatchApi.setBrightness + */ +static void setBrightness(unsigned char level) { watch->setBrightness(level); } diff --git a/src/core/watch/watch.hpp b/src/core/watch/watch.hpp index feaeae6..8354d4e 100644 --- a/src/core/watch/watch.hpp +++ b/src/core/watch/watch.hpp @@ -60,6 +60,12 @@ typedef struct { */ bool (*getTouch)(signed short &x, signed short &y); + /** + * @brief Set back light intensity value to given level + * + * @param level intensity level + * + */ void (*setBrightness)(unsigned char level); } WatchApi; diff --git a/src/main.cpp b/src/main.cpp index 5a861b1..e03673e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -224,7 +224,7 @@ void setup() soundApi = watchSoundApi(&soundQueue, &systemApi); - lastUserEventTimestamp = systemApi.time(); // todo move it before give watch mutex + lastUserEventTimestamp = systemApi.time(); // todo move it before give watch mutex #105 buttonListenerParameters = { .watchMutex = &watchMutex,