Minor code improvements from CppCheck & README updates (#32)

* log.h: fix signature of log_update_min_max_values

looks like it was changed in log.cpp, but not adjusted in log.h,
somewhen in the past

* adc_dma: only define variables if they are really required

* reduce scope of variables in interface_can.cpp

* `changed` was reassigned a value before the old one was used

* README: reformat flashing troubleshooting section

* README: punctuation fixes

* README: add troubleshooting tip for bad connection between nucleo and MPPT
This commit is contained in:
hoijui
2019-06-22 08:04:32 +02:00
committed by Martin Jäger
parent 32005a5642
commit 6016c17b14
5 changed files with 34 additions and 12 deletions
+2
View File
@@ -136,7 +136,9 @@ void update_measurements(dcdc_t *dcdc, charger_t *charger, dc_bus_t *hs, dc_bus_
https://www.embeddedrelated.com/showarticle/91.php
*/
#if defined PIN_ADC_TEMP_BAT || defined PIN_ADC_TEMP_FETS
float v_temp, rts;
#endif
float bat_temp = 25.0;
#ifdef PIN_ADC_TEMP_BAT