aboutsummaryrefslogtreecommitdiff
path: root/cmd/experimental/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/experimental/main.go')
-rw-r--r--cmd/experimental/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/experimental/main.go b/cmd/experimental/main.go
index e82a366..2bccb08 100644
--- a/cmd/experimental/main.go
+++ b/cmd/experimental/main.go
@@ -99,7 +99,7 @@ func onConnect(p gatt.Peripheral, err error) {
time.Sleep(5 * time.Second)
log.Println("Set speed")
ss := &anki.VehicleMsgSetSpeed{}
- ss.Set(anki.Speed(100*i), 1000)
+ ss.Set(anki.MMperSec(100*i), 1000)
b := anki.Encode(ss)
p.WriteCharacteristic(c, b, true)
}