More changes
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s
This commit is contained in:
@ -906,13 +906,13 @@ func (v *Vehicle) parseTire(prefix, suffix, name string, value any) {
|
||||
// v.client.logger.Debug("VEHICLE COND", "key", name, "data", value, "number", len(submatchall))
|
||||
|
||||
if t, ok := v.Tires[pos]; ok {
|
||||
t.Pressure = value.(int)
|
||||
t.Pressure = int(value.(float64))
|
||||
t.Updated = time.Now()
|
||||
v.Tires[pos] = t
|
||||
} else {
|
||||
v.Tires[pos] = Tire{
|
||||
Position: submatchall[0],
|
||||
Pressure: value.(int),
|
||||
Pressure: int(value.(float64)),
|
||||
Updated: time.Now(),
|
||||
}
|
||||
if len(submatchall) >= 2 {
|
||||
|
Reference in New Issue
Block a user