small fixes added
readme edit and fixed one mistake in main.go file
This commit is contained in:
parent
868888ee11
commit
0e29f51537
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user