private void SerialPort_ErrorReceived(object sender, SerialErrorReceivedEventArgs e) { _OnErrorReceived?.Invoke(e.ToString()); }
private void Serial_ErrorReceived(UartController sender, ErrorReceivedEventArgs e) { ErrorReceivedHandler handler = ErrorReceived; handler?.Invoke(this, e, DateTime.Now); }