|
@@ -69,7 +69,8 @@ void pdbs_config_print(BaseSequentialStream *chp, const struct pdbs_config *cfg)
|
69
|
69
|
/* Print voltages and current */
|
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
|
|
- if (cfg->flags & PDBS_CONFIG_FLAGS_VAR_BAT) {
|
|
72
|
+ /* If either end of the range is non-zero, print the range */
|
|
73
|
+ if (cfg->vmin != 0 || cfg->vmax != 0) {
|
73
|
74
|
chprintf(chp, "vmin: %d.%02d V\r\n", PD_PDV_V(cfg->vmin),
|
74
|
75
|
PD_PDV_CV(cfg->vmin));
|
75
|
76
|
chprintf(chp, "vmax: %d.%02d V\r\n", PD_PDV_V(cfg->vmax),
|