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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user