Skip to content

Commit

Permalink
Merge pull request #2 from Desionlab/develop
Browse files Browse the repository at this point in the history
Fixed receiving information about the bill from the table.
  • Loading branch information
fenixphp authored Feb 8, 2018
2 parents 494d635 + 1cf6cc0 commit 77ed5b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Source/CCNet/BillValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,19 +472,19 @@ class BillValidator extends EventEmitter {
/* Escrow position. */
case 0x80:
/* Fire event. */
this.emit('escrow', this.billTable[parseInt(status[1].toString(16))]);
this.emit('escrow', this.billTable[parseInt(status[1].toString(10))]);
break;

/* Bill stacked. */
case 0x81:
/* Fire event. */
this.emit('stacked', this.billTable[parseInt(status[1].toString(16))]);
this.emit('stacked', this.billTable[parseInt(status[1].toString(10))]);
break;

/* Bill returned. */
case 0x82:
/* Fire event. */
this.emit('returned', this.billTable[parseInt(status[1].toString(16))]);
this.emit('returned', this.billTable[parseInt(status[1].toString(10))]);
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cashcode-bv",
"version": "0.0.1",
"version": "0.0.2",
"description": "Library for working with \"CashCode\" Bill Validator devices from Node.js app.",
"main": "Source/index.js",
"scripts": {
Expand Down

0 comments on commit 77ed5b1

Please sign in to comment.