diff --git a/csharp/App/BmsTunnel/BmsTunnel.cs b/csharp/App/BmsTunnel/BmsTunnel.cs index b01632292..d7f455996 100644 --- a/csharp/App/BmsTunnel/BmsTunnel.cs +++ b/csharp/App/BmsTunnel/BmsTunnel.cs @@ -23,12 +23,12 @@ public class BmsTunnel : IDisposable private const Byte TunnelCode = 0x41; private const String CrcError = "?? CRC FAILED"; - public BmsTunnel(String tty, Byte node, SshHost? host) + public BmsTunnel(String tty, Byte node) { Tty = tty; Node = node; - StopSerialStarter(host); + StopSerialStarter(); SerialPort = new SerialPort(Tty, BaudRate, Parity, DataBits, StopBits); SerialPort.ReadTimeout = 100; @@ -165,11 +165,10 @@ public class BmsTunnel : IDisposable .Concat(NewLine); } - private void StopSerialStarter(SshHost? host) + private void StopSerialStarter() { CliPrograms.StopTty .WithArguments(Tty) - .OnHost(host) .ExecuteBufferedAsync() .Task .Wait(3000);