示例#1
0
 /// <summary>
 /// Send STIME command.
 /// </summary>
 public void SetTimeCommand()
 {
     if (_serialPort != null && _serialPort.IsAvailable())
     {
         Task.Run(() => _serialPort.SetLocalSystemDateTime());
     }
     else
     {
         DisplayConnectionError();
     }
 }