Fix soc dumped twice
This commit is contained in:
parent
8faeb29070
commit
509a15774b
1 changed files with 0 additions and 6 deletions
|
|
@ -109,12 +109,6 @@ func (d *dumper) Dump(name string, v interface{}) {
|
|||
|
||||
if v, ok := v.(api.Vehicle); ok {
|
||||
fmt.Fprintf(w, "Capacity:\t%dkWh\n", v.Capacity())
|
||||
|
||||
if soc, err := v.SoC(); err != nil {
|
||||
fmt.Fprintf(w, "State:\t%v\n", err)
|
||||
} else {
|
||||
fmt.Fprintf(w, "State:\t%.0f%%\n", soc)
|
||||
}
|
||||
}
|
||||
|
||||
if v, ok := v.(api.VehicleRange); ok {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue