Skip to content

Commit

Permalink
fix pairing error screen button
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmh committed Feb 1, 2018
1 parent 98bbdd2 commit 3c43acf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
node bin/lamassu-machine --mockBv /dev/ttys006 --mockBillDispenser --mockCam --mockTrader --mockApi --cryptoIn 1xxx
node bin/lamassu-machine --mockBillValidator --mockBillDispenser --mockCam
3 changes: 3 additions & 0 deletions lib/brain.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,9 @@ Brain.prototype._processReal = function _processReal (req) {
case 'pairingScanCancel':
this.scanner.cancel()
break
case 'pairingErrorOk':
this._unpaired()
break
case 'testMode':
this._testMode()
break
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ $(document).ready(function () {
setupButton('test-mode', 'testMode')
setupButton('pairing-scan', 'pairingScan')
setupButton('pairing-scan-cancel', 'pairingScanCancel')
setupButton('pairing-error-ok', 'pairingScanCancel')
setupButton('pairing-error-ok', 'pairingErrorOk')
setupButton('cash-out-button', 'cashOut')

setupImmediateButton('scan-id-cancel', 'cancelIdScan')
Expand Down

0 comments on commit 3c43acf

Please sign in to comment.