From 73f4b22930e7a41d7c35ea58c0560fbe1812fe91 Mon Sep 17 00:00:00 2001 From: ig Date: Tue, 20 Jun 2023 09:29:57 +0200 Subject: [PATCH] remove host from BmsTunnel --- csharp/App/BmsTunnel/BmsTunnel.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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);