wrong serial command
This commit is contained in:
parent
9bcfd75aa2
commit
5de7e3c0ce
@ -7,7 +7,7 @@
|
|||||||
<Authors>Glax</Authors>
|
<Authors>Glax</Authors>
|
||||||
<RepositoryUrl>https://github.com/C9Glax/CShocker</RepositoryUrl>
|
<RepositoryUrl>https://github.com/C9Glax/CShocker</RepositoryUrl>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<Version>1.3.0</Version>
|
<Version>1.3.1</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -16,7 +16,7 @@ public class OpenShockSerial : SerialShocker
|
|||||||
|
|
||||||
protected override void ControlInternal(ControlAction action, string shockerId, int intensity, int duration)
|
protected override void ControlInternal(ControlAction action, string shockerId, int intensity, int duration)
|
||||||
{
|
{
|
||||||
string json = "{" +
|
string json = "rftransmit {" +
|
||||||
$"\"model\":\"{Enum.GetName(Model[shockerId])!.ToLower()}\"," +
|
$"\"model\":\"{Enum.GetName(Model[shockerId])!.ToLower()}\"," +
|
||||||
$"\"id\":{shockerId}," +
|
$"\"id\":{shockerId}," +
|
||||||
$"\"type\":\"{ControlActionToString(action)}\"," +
|
$"\"type\":\"{ControlActionToString(action)}\"," +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user