Skip to content

Commit

Permalink
#99 gesture pre detection
Browse files Browse the repository at this point in the history
doxygen and todos
  • Loading branch information
igors48 committed Jun 24, 2022
1 parent 6109511 commit 5b5e776
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/task/serviceProcedure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/core/task/touchScreenListener.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion src/core/watch/watch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
6 changes: 6 additions & 0 deletions src/core/watch/watch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5b5e776

Please sign in to comment.