develop
soul liu 2 years ago
parent 4d8a5dc054
commit d5c8af08ed
  1. 4
      SerialPort/utils/GodSerialPortUtils.cs

@ -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;
}

Loading…
Cancel
Save