diff options
author | Avamander <avamander@gmail.com> | 2021-05-14 12:43:29 +0300 |
---|---|---|
committer | Avamander <avamander@gmail.com> | 2021-05-14 12:43:29 +0300 |
commit | e54163b7c201cb9247f1761ec789564b5f202814 (patch) | |
tree | d9a7a1c08e19c4faf1283db298a8e20d77599cd9 /src/displayapp/DisplayApp.cpp | |
parent | c82dee2def76c59229aca4ecd5524a19114d4579 (diff) |
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 3a20c766..38470bfd 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; |