small fixes added

readme edit and fixed one mistake in main.go file
This commit is contained in:
foglar 2024-01-29 13:05:22 +01:00
parent 868888ee11
commit 0e29f51537
2 changed files with 4 additions and 6 deletions

View File

@ -1,14 +1,12 @@
# CobraV2 # CobraV2
## Installation ## Installation and compilation
```bash ```bash
git clone https://www.github.com/foglar/cobraV2.git git clone https://www.github.com/foglar/cobraV2.git
``` cd cobraV2/serial_read
```bash
# Building serial read code yourself # Building serial read code yourself
cd serial_read
go build main.go go build main.go
``` ```

View File

@ -103,8 +103,8 @@ func main() {
} }
i++ i++
} }
_, err := os.Stat(port)
if port == "" { if port == "" || os.IsNotExist(err) {
port = portInput() port = portInput()
} }
if baudrate == 0 { if baudrate == 0 {