diff --git a/Service/Car/Msg/BaseMsg.cs b/Service/Car/Msg/BaseMsg.cs index ce5fed6..44cf84e 100644 --- a/Service/Car/Msg/BaseMsg.cs +++ b/Service/Car/Msg/BaseMsg.cs @@ -32,6 +32,8 @@ public class BaseMsg : IToBytes [Property(184 + 5 * 8, 8)] public byte Min { get; set; } [Property(184 + 6 * 8, 8)] public byte Second { get; set; } + [Property(184 + 7 * 8, 8)] public byte NotUsed { get; set; } = 0; + public void InitCurrentTime() { DateTime now = DateTime.Now; diff --git a/WebStarter/Controllers/CarController.cs b/WebStarter/Controllers/CarController.cs index 7017e15..5a23a6d 100644 --- a/WebStarter/Controllers/CarController.cs +++ b/WebStarter/Controllers/CarController.cs @@ -126,6 +126,11 @@ public class CarController : ControllerBase return true; } + /// + /// 清空数据 + /// + /// + [HttpGet("/clear")] public bool Clear() { if (CarServerMgr.CarServer?.CarNo == null)