From a9b36c8c478e9e3bb5782a593cfff59c29fa8352 Mon Sep 17 00:00:00 2001 From: lxw Date: Wed, 19 Jun 2024 17:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebStarter/Controllers/TBoxController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebStarter/Controllers/TBoxController.cs b/WebStarter/Controllers/TBoxController.cs index e4fecdd..c5b2f1d 100644 --- a/WebStarter/Controllers/TBoxController.cs +++ b/WebStarter/Controllers/TBoxController.cs @@ -26,7 +26,7 @@ public class TBoxController : ControllerBase { Log.Info($"Connect {carNo}"); TBoxServerMgr.Server.StartSendVin(carNo); - return TBoxServerMgr.Server != null && TBoxServerMgr.Server.Connected; + return TBoxServerMgr.Server != null && TBoxServerMgr.Server.BatteryNo()!=null; } ///