diff options
| author | JF002 <JF002@users.noreply.github.com> | 2021-05-15 09:56:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-15 09:56:48 +0200 |
| commit | 48018fc1d8e0f279ebaeaaad88d72e334af6e932 (patch) | |
| tree | d99079ed042a8d96429c9165759e5e4996941569 /src/displayapp/DisplayApp.cpp | |
| parent | a0acc0e8d251d76b77ff7043eac3892c488f404d (diff) | |
| parent | e54163b7c201cb9247f1761ec789564b5f202814 (diff) | |
Merge pull request #350 from Avamander/patch-3
Added braces to a few if statements
Diffstat (limited to 'src/displayapp/DisplayApp.cpp')
| -rw-r--r-- | src/displayapp/DisplayApp.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp index c406a66b..eb05e7c3 100644 --- a/src/displayapp/DisplayApp.cpp +++ b/src/displayapp/DisplayApp.cpp @@ -73,8 +73,9 @@ DisplayApp::DisplayApp(Drivers::St7789& lcd, } void DisplayApp::Start() { - if (pdPASS != xTaskCreate(DisplayApp::Process, "displayapp", 800, this, 0, &taskHandle)) + if (pdPASS != xTaskCreate(DisplayApp::Process, "displayapp", 800, this, 0, &taskHandle)) { APP_ERROR_HANDLER(NRF_ERROR_NO_MEM); + } } void DisplayApp::Process(void* instance) { @@ -349,8 +350,9 @@ TouchEvents DisplayApp::OnTouchEvent() { if (info.isTouch) { switch (info.gesture) { case Pinetime::Drivers::Cst816S::Gestures::SingleTap: - if (touchMode == TouchModes::Gestures) + if (touchMode == TouchModes::Gestures) { lvgl.SetNewTapEvent(info.x, info.y); + } return TouchEvents::Tap; case Pinetime::Drivers::Cst816S::Gestures::LongPress: return TouchEvents::LongTap; |
