Skip to content

Commit

Permalink
fix: Define errno structure correctly (#192)
Browse files Browse the repository at this point in the history
The bytes available and bytes provided fields were flipped around, which
is easy to do when they are not given names so names were also added.

Fixes #191
  • Loading branch information
kadler authored Mar 26, 2020
1 parent 15397c2 commit b1561f7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/Toolkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,14 @@ class Toolkit {
io: 'both',
len: 'rec2',
fields: [
{ type: '10i0', value: 0 },
{ type: '10i0', setlen: 'rec2', value: 0 },
{ type: '7A', value: '' },
{
name: 'bytes_provided',
type: '10i0',
value: 0,
setlen: 'rec2',
},
{ name: 'bytes_available', type: '10i0', value: 0 },
{ name: 'msgid', type: '7A', value: '' },
{ type: '1A', value: '' },
],
};
Expand Down

0 comments on commit b1561f7

Please sign in to comment.