Skip to content

Commit

Permalink
fix: Add faulty response detection
Browse files Browse the repository at this point in the history
  • Loading branch information
selengalp committed Nov 1, 2023
1 parent 9888d16 commit e8cd1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atcom.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func SendAT(command string, args map[string]interface{}) ([]string, error) {

for _, faultStr := range fault {
if strings.Contains(data, faultStr) {
found <- nil
found <- errors.New("faulty response detected")
return
}
}
Expand Down

0 comments on commit e8cd1d3

Please sign in to comment.