Skip to content

Commit

Permalink
fix(ci): fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
takuo committed Feb 12, 2023
1 parent 1334672 commit 2967ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type Data struct {
// initialize and prepare the device
func prepareDevice(p serial.Port, s *bufio.Scanner) error {
logInfo("Prepare device...:")
defer logPrint("\n")
defer logPrintln("")
for _, c := range []string{"STP", "ID?", "STA"} {
logPrintf(" %v", c)
if _, err := p.Write([]byte(c + "\r\n")); err != nil {
Expand Down Expand Up @@ -84,7 +84,7 @@ func main() {
defer func() { port.Write([]byte("STP\r\n")); time.Sleep(time.Millisecond * 100); port.Close() }()

// serial reader
port.SetReadTimeout(time.Duration(time.Second * 10))
port.SetReadTimeout(time.Second * 10)
s := bufio.NewScanner(port)
s.Split(bufio.ScanLines)

Expand Down

0 comments on commit 2967ba7

Please sign in to comment.