public async void CloseSerialPort() { await TelemetryLink.CloseAsync(); ConnectMessage = "Connect"; OpenSerialPortCommand.RaiseCanExecuteChanged(); GetWaypointsCommand.RaiseCanExecuteChanged(); }
public async void OpenSerialPort() { SelectedPort.BaudRate = 57600; await TelemetryLink.OpenAsync(SelectedPort); ConnectMessage = "Disconnect"; OpenSerialPortCommand.RaiseCanExecuteChanged(); GetWaypointsCommand.RaiseCanExecuteChanged(); }