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:
@@ -241,7 +241,7 @@ ThingSet ts(
|
||||
|
||||
void data_objects_update_conf()
|
||||
{
|
||||
bool changed = false;
|
||||
bool changed;
|
||||
if (battery_conf_check(&bat_conf_user)) {
|
||||
printf("New config valid and activated.\n");
|
||||
battery_conf_overwrite(&bat_conf_user, &bat_conf, &charger);
|
||||
@@ -250,6 +250,7 @@ void data_objects_update_conf()
|
||||
else {
|
||||
printf("Check not passed, getting back old config.\n");
|
||||
battery_conf_overwrite(&bat_conf, &bat_conf_user);
|
||||
changed = false;
|
||||
}
|
||||
|
||||
// TODO: check also for changes in Load/USB EnDefault
|
||||
|
||||
Reference in New Issue
Block a user