Skip to content

Commit

Permalink
Merge pull request #6 from JekRock/master
Browse files Browse the repository at this point in the history
fix send error hiding
  • Loading branch information
robinson authored Nov 15, 2018
2 parents 66ae787 + 19d9ad7 commit db01b78
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 db01b78

Please sign in to comment.