|
@@ -70,10 +70,10 @@ void pdbs_config_print(BaseSequentialStream *chp, const struct pdbs_config *cfg)
|
70
|
70
|
chprintf(chp, "v: %d.%02d V\r\n", PD_PDV_V(cfg->v), PD_PDV_CV(cfg->v));
|
71
|
71
|
chprintf(chp, "i: %d.%02d A\r\n", PD_PDI_A(cfg->i), PD_PDI_CA(cfg->i));
|
72
|
72
|
if (cfg->flags & PDBS_CONFIG_FLAGS_VAR_BAT) {
|
73
|
|
- chprintf(chp, "v_min: %d.%02d V\r\n", PD_PDV_V(cfg->v_min),
|
74
|
|
- PD_PDV_CV(cfg->v_min));
|
75
|
|
- chprintf(chp, "v_max: %d.%02d V\r\n", PD_PDV_V(cfg->v_max),
|
76
|
|
- PD_PDV_CV(cfg->v_max));
|
|
73
|
+ chprintf(chp, "vmin: %d.%02d V\r\n", PD_PDV_V(cfg->vmin),
|
|
74
|
+ PD_PDV_CV(cfg->vmin));
|
|
75
|
+ chprintf(chp, "vmax: %d.%02d V\r\n", PD_PDV_V(cfg->vmax),
|
|
76
|
+ PD_PDV_CV(cfg->vmax));
|
77
|
77
|
}
|
78
|
78
|
}
|
79
|
79
|
|
|
@@ -215,8 +215,8 @@ void pdbs_config_flash_update(const struct pdbs_config *cfg)
|
215
|
215
|
flash_write_halfword(&(empty->flags), cfg->flags);
|
216
|
216
|
flash_write_halfword(&(empty->v), cfg->v);
|
217
|
217
|
flash_write_halfword(&(empty->i), cfg->i);
|
218
|
|
- flash_write_halfword(&(empty->v_min), cfg->v_min);
|
219
|
|
- flash_write_halfword(&(empty->v_max), cfg->v_max);
|
|
218
|
+ flash_write_halfword(&(empty->vmin), cfg->vmin);
|
|
219
|
+ flash_write_halfword(&(empty->vmax), cfg->vmax);
|
220
|
220
|
|
221
|
221
|
flash_lock();
|
222
|
222
|
|