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 Mar 19, 2024
1 parent 609c92c commit 281db4f
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 281db4f

Please sign in to comment.