Skip to content

Commit

Permalink
fix send error hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
JekRock committed Nov 13, 2018
1 parent 66ae787 commit 19d9ad7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ func (mb *client) writeArea(area int, dbnumber int, start int, amount int, wordl

//expand values into array
request.Data = append(request.Data[:35], append(buffer[offset:offset+dataSize], request.Data[35:]...)...)
response, err := mb.send(&request)
response, sendError := mb.send(&request)
err = sendError
if err == nil {
if length = len(response.Data); length == 22 {
if response.Data[21] != byte(0xFF) {
Expand Down

0 comments on commit 19d9ad7

Please sign in to comment.