From c681e1fbcece987459f1b2c3fe749cfee3f198f3 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Tue, 13 Feb 2024 01:36:10 +0100 Subject: [PATCH] Save 8 bytes --- app/app.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/app.c b/app/app.c index 80943ae..2f58953 100644 --- a/app/app.c +++ b/app/app.c @@ -831,11 +831,7 @@ void APP_Update(void) if(gSetting_set_tot >= 2) { if (gEeprom.BACKLIGHT_TIME == 0) { - if (gBlinkCounter == 0) - { - GPIO_FlipBit(&GPIOC->DATA, GPIOC_PIN_FLASHLIGHT); - } - else if(gBlinkCounter == 250) + if (gBlinkCounter == 0 || gBlinkCounter == 250) { GPIO_FlipBit(&GPIOC->DATA, GPIOC_PIN_FLASHLIGHT); }