Skip to content

Commit

Permalink
tesla-control: Fix wakeup over BLE
Browse files Browse the repository at this point in the history
The wake command requires authentication over BLE, but not over Fleet
API. This commit adds special logic to tesla-control to handle this.
  • Loading branch information
sethterashima committed Dec 13, 2023
1 parent e1c70d9 commit 6bc1a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tesla-control/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func configureFlags(c *cli.Config, commandName string, forceBLE bool) error {
return ErrUnknownCommand
}
c.Flags = cli.FlagBLE
if info.requiresAuth {
if (forceBLE && commandName == "wake") || info.requiresAuth {
c.Flags |= cli.FlagPrivateKey | cli.FlagVIN
}
if !info.requiresFleetAPI {
Expand Down

0 comments on commit 6bc1a1f

Please sign in to comment.