Skip to content

Commit

Permalink
fix: return to context when driveer error
Browse files Browse the repository at this point in the history
  • Loading branch information
wwhai committed Nov 2, 2021
1 parent 332c2b7 commit a283439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/uart_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (a *UartDriver) Work() error {
size, err0 := a.serialPort.Read(data)
if err0 != nil {
a.Stop()
continue
return
}
if size == 1 {
// # 分隔符
Expand Down

0 comments on commit a283439

Please sign in to comment.