Skip to content

Commit

Permalink
fix: close after use
Browse files Browse the repository at this point in the history
  • Loading branch information
yyewolf committed Jan 16, 2024
1 parent ba1ff38 commit de0526d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ func sendToACM(c echo.Context, data []byte) error {
continue
}
logrus.Debug("Wrote ", n, " bytes")

port.Close()
}

// Write 1 to ttyACM*
Expand Down

0 comments on commit de0526d

Please sign in to comment.