Skip to content

Commit

Permalink
Update commands.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bogosj authored Jul 13, 2021
1 parent 0e5b7bb commit f2a8519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (v Vehicle) Start(password string) error {

// OpenTrunk opens the trunk, where values may be 'front' or 'rear'.
func (v Vehicle) OpenTrunk(trunk string) error {
apiURL := v.c.baseURL + "/vehicles/" + strconv.FormatInt(v.ID, 10) + "/command/trunk_open" // ?which_trunk=" + trunk
apiURL := v.c.baseURL + "/vehicles/" + strconv.FormatInt(v.ID, 10) + "/command/actuate_trunk" // ?which_trunk=" + trunk
payload := `{"which_trunk": "` + trunk + `"}`
_, err := v.c.post(apiURL, []byte(payload))
return err
Expand Down

0 comments on commit f2a8519

Please sign in to comment.