diff --git a/src/main.c b/src/main.c index 6b743c7..583140d 100644 --- a/src/main.c +++ b/src/main.c @@ -632,6 +632,12 @@ int main(void) power_state.temp_avg = fxp_from_int(-999); /* initialize mpp_state */ + mpp_state.powerSamples = 0; + mpp_state.powerAccu = 0; + mpp_state.maxPower = 0; + mpp_state.refPower = 0; + mpp_state.nextTestStepTime = 0; + mpp_state.testIdx = -1; mpp_state.maxPWM = CONV_PWM_MAX; mpp_state.refPWM = CONV_PWM_MAX;