Fixed warnings related to mpp_state

This commit is contained in:
Thomas Kolb 2020-04-12 17:35:54 +02:00
parent efca8d7e1a
commit ff4133232b
1 changed files with 6 additions and 0 deletions

View File

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