diff --git a/src/gruvin9x.cpp b/src/gruvin9x.cpp index 326e40413..7690a21b2 100644 --- a/src/gruvin9x.cpp +++ b/src/gruvin9x.cpp @@ -1483,6 +1483,7 @@ void perMain() #define MAX_ACT 0xffff static uint16_t fp_act[MAX_PHASES] = {0}; + static uint16_t delta = 0; static uint8_t s_fade_flight_phases = 0; static uint8_t s_last_phase = 255; uint8_t phase = getFlightPhase(); @@ -1492,23 +1493,18 @@ void perMain() fp_act[phase] = MAX_ACT; } else { - if (g_model.phaseData[s_last_phase].fadeOut) { - s_fade_flight_phases |= (1< delta) fp_act[p] += delta; else { @@ -1567,7 +1561,6 @@ void perMain() } } else { - uint16_t delta = (MAX_ACT / 100) / g_model.phaseData[p].fadeOut; if (fp_act[p] > delta) fp_act[p] -= delta; else {