Fixed some warnings

This commit is contained in:
Thomas Kolb 2017-01-15 18:13:43 +01:00
parent 4df43a99ee
commit c3c33b3753

View file

@ -603,13 +603,19 @@ int main(void)
/* if power changes by more than this factor, MPP is tested again */ /* if power changes by more than this factor, MPP is tested again */
MPP_MAX_POWER_CHANGE_FACTOR = fxp_from_float(0.2f); MPP_MAX_POWER_CHANGE_FACTOR = fxp_from_float(0.2f);
/* initalize power_state */
power_state.vin_avg = 0; power_state.vin_avg = 0;
power_state.vout_avg = 0; power_state.vout_avg = 0;
power_state.current_avg = 0; power_state.current_avg = 0;
power_state.power_avg = 0;
power_state.temp_avg = fxp_from_int(-999); power_state.temp_avg = fxp_from_int(-999);
mpp_state.mppMaxPWM = CONV_PWM_MAX; mpp_state.mppMaxPWM = CONV_PWM_MAX;
/* initialize mpp_state */
mpp_state.maxPWM = CONV_PWM_MAX;
mpp_state.refPWM = CONV_PWM_MAX;
init_clock(); init_clock();
init_rtc(); init_rtc();
init_gpio(); init_gpio();
@ -679,7 +685,7 @@ int main(void)
if(timebase_ms % 250 == 0) { if(timebase_ms % 250 == 0) {
debug_send_string("ADC: "); debug_send_string("ADC: ");
for(int i = 0; i < 3; i++) { for(int i = 0; i < ADC_NUM_CHANNELS; i++) {
fxp_format_int(adc_values[i], msg); fxp_format_int(adc_values[i], msg);
debug_send_string(msg); debug_send_string(msg);
debug_send_string(" "); debug_send_string(" ");