Skip to content

Commit 019ea9e

Browse files
committed
cli: minor bug fixes and forgotten debug lines
1 parent 99a3ae9 commit 019ea9e

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

cli/cmd/read.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,11 @@ The command accepts other arguments too.`,
7070
var errorString string = color.HiRedString("\r\nThere was an error while trying to connect to the ODSCI probe.\r\nThe serial port you entered may be incorrect.\r\nTo scan for serial ports on your computer, run ") + color.HiMagentaString("'odsci scan'") + color.HiRedString(".\r\n\r\nError details:\r\n\r\n")
7171
print(errorString)
7272
log.Fatal(err)
73-
} else {
74-
port.Write([]byte("SET_CLED_ON\r"))
7573
}
7674

7775
// handle ctrl+c
7876
go func() {
7977
<-sigChan
80-
port.Write([]byte("SET_CLED_OFF\r"))
8178
color.HiRed("\r\n\r\nCancelled.")
8279
os.Exit(0)
8380
}()

cli/utils/board_check.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ func BoardCheck(port serial.Port, scanner *bufio.Scanner) (BoardInfo, error) {
3131
port.Write([]byte("GET_INFO\r"))
3232
scanner.Scan()
3333
line := scanner.Text()
34-
fmt.Println(line)
3534
if strings.HasPrefix(line, "ERROR:") {
3635
var errorString string = fmt.Sprintf("ODSCI error: %s", line);
3736
return BoardInfo{}, errors.New(errorString)

0 commit comments

Comments
 (0)