Skip to content

Commit

Permalink
Fix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
1-max-1 committed Nov 18, 2023
1 parent 7eaae82 commit d6486e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WASMSerialTerminal/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@

try {
bool portSelected = await serialService.OpenPortSelectionDialog(baudRate, dataBits, flowControl, parity, stopBits);
isChangingConnectionState = false;
if (portSelected) {
serialData.Clear();
await grid!.Reload();
Expand All @@ -93,6 +92,8 @@
catch (SerialInitializationException) {
await dialogService.Alert("Failed to open serial port. Please try again. The serial port may already be in use by another process.", "Error");
}

isChangingConnectionState = false;
}

private async Task OnDisconnectButtonClick() {
Expand Down

0 comments on commit d6486e7

Please sign in to comment.