Save 8 bytes

This commit is contained in:
Armel FAUVEAU
2024-02-13 01:36:10 +01:00
parent 07e4c60d90
commit c681e1fbce

View File

@@ -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);
}