From 5de7e3c0ce20fd6b4721283118d680cc724b1d20 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 20 Jan 2024 20:19:25 +0100 Subject: [PATCH] wrong serial command --- CShocker/CShocker.csproj | 2 +- CShocker/Shockers/APIS/OpenShockSerial.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CShocker/CShocker.csproj b/CShocker/CShocker.csproj index c7b5052..a384cff 100644 --- a/CShocker/CShocker.csproj +++ b/CShocker/CShocker.csproj @@ -7,7 +7,7 @@ Glax https://github.com/C9Glax/CShocker git - 1.3.0 + 1.3.1 diff --git a/CShocker/Shockers/APIS/OpenShockSerial.cs b/CShocker/Shockers/APIS/OpenShockSerial.cs index d5af260..38f1b13 100644 --- a/CShocker/Shockers/APIS/OpenShockSerial.cs +++ b/CShocker/Shockers/APIS/OpenShockSerial.cs @@ -16,7 +16,7 @@ public class OpenShockSerial : SerialShocker protected override void ControlInternal(ControlAction action, string shockerId, int intensity, int duration) { - string json = "{" + + string json = "rftransmit {" + $"\"model\":\"{Enum.GetName(Model[shockerId])!.ToLower()}\"," + $"\"id\":{shockerId}," + $"\"type\":\"{ControlActionToString(action)}\"," +