Fixed not correct if condition
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 23s

This commit is contained in:
2025-05-29 00:38:28 -04:00
parent 59ee34b899
commit 4b7af175ce

View File

@ -653,7 +653,7 @@ func (v *Vehicle) GetVehicleStatus() {
}
}
}
if strings.HasPrefix(key, "tirePressure") && !strings.HasSuffix(key, "Psi") {
if strings.HasPrefix(key, "tirePressure") && strings.HasSuffix(key, "Psi") {
pos := strings.TrimPrefix(key, "tirePressure")
pos = strings.TrimSuffix(pos, "Psi")
submatchall := re.FindAllString(pos, -1)
@ -825,7 +825,7 @@ func (v *Vehicle) GetVehicleCondition() {
}
}
}
if strings.HasPrefix(key, "tirePressure") && !strings.HasSuffix(key, "Psi") {
if strings.HasPrefix(key, "tirePressure") && strings.HasSuffix(key, "Psi") {
pos := strings.TrimPrefix(key, "tirePressure")
pos = strings.TrimSuffix(pos, "Psi")
submatchall := re.FindAllString(pos, -1)