报文修改

master
smartwyy 7 months ago
parent 33ad268315
commit 8ce53d328a

@ -32,6 +32,8 @@ public class BaseMsg : IToBytes
[Property(184 + 5 * 8, 8)] public byte Min { get; set; } [Property(184 + 5 * 8, 8)] public byte Min { get; set; }
[Property(184 + 6 * 8, 8)] public byte Second { 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() public void InitCurrentTime()
{ {
DateTime now = DateTime.Now; DateTime now = DateTime.Now;

@ -126,6 +126,11 @@ public class CarController : ControllerBase
return true; return true;
} }
/// <summary>
/// 清空数据
/// </summary>
/// <returns></returns>
[HttpGet("/clear")]
public bool Clear() public bool Clear()
{ {
if (CarServerMgr.CarServer?.CarNo == null) if (CarServerMgr.CarServer?.CarNo == null)

Loading…
Cancel
Save