From 61c2d8dbc77ad909910a28406081e38c72150fce Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Mon, 13 Jun 2022 23:51:05 +0300 Subject: Flashlight default to max brightness and code cleanup --- src/displayapp/screens/FlashLight.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/displayapp/screens/FlashLight.h') diff --git a/src/displayapp/screens/FlashLight.h b/src/displayapp/screens/FlashLight.h index e91a1032..c885048f 100644 --- a/src/displayapp/screens/FlashLight.h +++ b/src/displayapp/screens/FlashLight.h @@ -17,7 +17,7 @@ namespace Pinetime { ~FlashLight() override; bool OnTouchEvent(Pinetime::Applications::TouchEvents event) override; - void OnClickEvent(lv_obj_t* obj, lv_event_t event); + void Toggle(); private: void SetIndicators(); @@ -26,7 +26,7 @@ namespace Pinetime { Pinetime::System::SystemTask& systemTask; Controllers::BrightnessController& brightnessController; - Controllers::BrightnessController::Levels brightnessLevel; + Controllers::BrightnessController::Levels brightnessLevel = Controllers::BrightnessController::Levels::High; lv_obj_t* flashLight; lv_obj_t* backgroundAction; -- cgit v1.2.3-70-g09d2