From 786ea60af93d5124a973403edec6d02779594c9b Mon Sep 17 00:00:00 2001 From: Willy-JL Date: Sat, 11 Feb 2023 05:53:56 +0000 Subject: [PATCH] Nightstand clock tweaks --- applications/plugins/nightstand/clock_app.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/applications/plugins/nightstand/clock_app.c b/applications/plugins/nightstand/clock_app.c index d6bf63862..d7a9f7faa 100644 --- a/applications/plugins/nightstand/clock_app.c +++ b/applications/plugins/nightstand/clock_app.c @@ -270,6 +270,7 @@ int32_t clock_app(void* p) { notif = furi_record_open(RECORD_NOTIFICATION); float tmpBrightness = notif->settings.display_brightness; + brightness = tmpBrightness * 100; notification_message(notif, &sequence_display_backlight_enforce_on); notification_message(notif, &led_off); @@ -284,7 +285,7 @@ int32_t clock_app(void* p) { if(furi_mutex_acquire(plugin_state->mutex, FuriWaitForever) != FuriStatusOk) continue; // press events if(event.type == EventTypeKey) { - if(event.input.type == InputTypeLong) { + if(event.input.type == InputTypeShort) { switch(event.input.key) { case InputKeyLeft: // Reset seconds @@ -298,11 +299,6 @@ int32_t clock_app(void* p) { // Exit the plugin processing = false; break; - default: - break; - } - } else if(event.input.type == InputTypeShort) { - switch(event.input.key) { case InputKeyUp: handle_up(); break; @@ -335,4 +331,4 @@ int32_t clock_app(void* p) { notification_message(notif, &led_reset); return 0; -} \ No newline at end of file +}