Skip to content

Commit

Permalink
Fix rear trunk actuation
Browse files Browse the repository at this point in the history
  • Loading branch information
stx committed Dec 9, 2023
1 parent 7659a48 commit 878509a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/proxy/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ func ExtractCommandAction(ctx context.Context, command string, params RequestPar
case "front":
return func(v *vehicle.Vehicle) error { return v.OpenFrunk(ctx) }, nil
case "rear":
return func(v *vehicle.Vehicle) error { return v.OpenTrunk(ctx) }, nil
return func(v *vehicle.Vehicle) error { return v.ActuateTrunk(ctx) }, nil
default:
return nil, &protocol.NominalError{Details: protocol.NewError("invalid_value", false, false)}
}
}
return func(v *vehicle.Vehicle) error { return v.OpenTrunk(ctx) }, nil
return func(v *vehicle.Vehicle) error { return v.ActuateTrunk(ctx) }, nil
case "charge_port_door_open":
return func(v *vehicle.Vehicle) error { return v.ChargePortOpen(ctx) }, nil
case "charge_port_door_close":
Expand Down

0 comments on commit 878509a

Please sign in to comment.