@ -3,6 +3,9 @@ using GodSharp.SerialPort.Extensions;
using GodSharp.SerialPort;
using System.IO.Ports;
using System.Text.RegularExpressions;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Soul2.SerialPort.utils {
/// <summary>
@ -113,6 +116,7 @@ namespace Soul2.SerialPort.utils {
/// </summary>
/// <returns>是否已关闭</returns>
public static bool close() {
be_sending = false;
if (gsp == null) {
return true;
}