Skip to content

Commit

Permalink
Fix Bug in Close
Browse files Browse the repository at this point in the history
  • Loading branch information
afiebig committed May 9, 2019
1 parent 752a904 commit 68bad96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transbank.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ BaseResponse close()
if (wait > 0)
{
int readedbytes = read_bytes(port, buf, CLOSE);
if (read_bytes > 0)
if (readedbytes > 0)
{
retval = reply_ack(port, buf, CLOSE.responseSize);
if (retval == TBK_OK)
Expand Down

0 comments on commit 68bad96

Please sign in to comment.