Save 8 bytes
This commit is contained in:
@@ -831,11 +831,7 @@ void APP_Update(void)
|
|||||||
if(gSetting_set_tot >= 2)
|
if(gSetting_set_tot >= 2)
|
||||||
{
|
{
|
||||||
if (gEeprom.BACKLIGHT_TIME == 0) {
|
if (gEeprom.BACKLIGHT_TIME == 0) {
|
||||||
if (gBlinkCounter == 0)
|
if (gBlinkCounter == 0 || gBlinkCounter == 250)
|
||||||
{
|
|
||||||
GPIO_FlipBit(&GPIOC->DATA, GPIOC_PIN_FLASHLIGHT);
|
|
||||||
}
|
|
||||||
else if(gBlinkCounter == 250)
|
|
||||||
{
|
{
|
||||||
GPIO_FlipBit(&GPIOC->DATA, GPIOC_PIN_FLASHLIGHT);
|
GPIO_FlipBit(&GPIOC->DATA, GPIOC_PIN_FLASHLIGHT);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user