Commit fbab6039 authored by 潘栩锋's avatar 潘栩锋 🚴

修复 AD盒.B2 复位功能少了reset字段

parent 481c737e
......@@ -132,10 +132,7 @@ namespace GeneralGommunication
if (command is string)
{
var c = (string)command;
foreach (var _c in c)
{
bytes.Add((byte)_c);
}
bytes.AddRange(Encoding.ASCII.GetBytes(c));
}
else if (command is char)
{
......
......@@ -8,9 +8,11 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
namespace FlyADBase
{
......@@ -1132,6 +1134,7 @@ namespace FlyADBase
{
List<byte> datas = new List<byte>();
datas.Add(sec);
datas.AddRange(Encoding.ASCII.GetBytes("reset"));
var datasObj = new { sec };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment