Browse Source
disable serial port button if already open
pull/71/head
Sacha Weatherstone
3 years ago
No known key found for this signature in database
GPG Key ID: 7AB2D7E206124B31
1 changed files with
1 additions and
0 deletions
-
src/components/PageComponents/Connect/Serial.tsx
|
|
|
@ -51,6 +51,7 @@ export const Serial = (): JSX.Element => { |
|
|
|
{serialPorts.map((port, index) => ( |
|
|
|
<Button |
|
|
|
key={index} |
|
|
|
disabled={!port.readable} |
|
|
|
onClick={() => { |
|
|
|
void onConnect(port); |
|
|
|
}} |
|
|
|
|