private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { _timer1s.Enabled = false; SerialPortHelper.CloseConnection(); }
private void InitSerial() { SerialPortHelper.OnSerialPort_MessageReceived += SerialPortHelper_OnSerialPort_MessageReceived; SerialPortHelper.InitSerialPort("/dev/ttyAMA0", false); }