From f593efda6226ddf6057769c5bffb0cb33eaa7af2 Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 4 Feb 2024 16:26:10 +0100 Subject: [PATCH] UpdateReadme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 782f303..b298160 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ public static void Main(string[] args){ string apiKey = ":)"; OpenShockHttp openShockHttp = new (intensityRange, durationRange, apiKey); - OpenShockShocker shocker1 = openShockHttp.GetShockers(apiKey).First(); + OpenShockShocker shocker1 = openShockHttp.GetShockers().First(); shocker1.Control(ControlAction.Vibrate, 20, 1000); shocker1.Dispose(); @@ -20,7 +20,7 @@ public static void Main(string[] args){ List serialPorts = SerialHelper.GetSerialPorts(); int selectedPort = 1; OpenShockSerial openShockSerial = new(intensityRange, durationRange, serialPorts[selectedPort], apiKey); - OpenShockShocker shocker2 = openShockSerial.GetShockers(apiKey).First(); + OpenShockShocker shocker2 = openShockSerial.GetShockers().First(); shocker2.Control(ControlAction.Vibrate, 20, 1000); shocker2.Dispose();