From ff4133232b97f3aaa07a392f3570817ea6dab8a8 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Sun, 12 Apr 2020 17:35:54 +0200 Subject: [PATCH] Fixed warnings related to mpp_state --- src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) 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;