diff --git a/deploy/codebase/lamassu-machine-manager.js b/deploy/codebase/lamassu-machine-manager.js index a09ad65d3..a2627015f 100644 --- a/deploy/codebase/lamassu-machine-manager.js +++ b/deploy/codebase/lamassu-machine-manager.js @@ -140,6 +140,17 @@ function restartWatchdogService (cb) { }) } +function updateGSR50 (cb) { + LOG("Updating GSR50") + if (machineCode !== 'aveiro') return cb() + return async.series([ + async.apply(command, `cp ${applicationParentFolder}/lamassu-machine/lib/gsr50/binaries/* /opt/FujitsuGSR50/`), + ], function(err) { + if (err) throw err; + cb() + }); +} + function updateAcpChromium (cb) { LOG("Updating ACP Chromium") if (hardwareCode !== 'aaeon') return cb() @@ -182,10 +193,7 @@ function installDeviceConfig (cb) { newDeviceConfig.billDispenser.cassettes = currentDeviceConfig.billDispenser.cassettes } if (currentDeviceConfig.billValidator) { - newDeviceConfig.billValidator.deviceType = currentDeviceConfig.billValidator.deviceType - if (currentDeviceConfig.billValidator.rs232) { - newDeviceConfig.billValidator.rs232.device = currentDeviceConfig.billValidator.rs232.device - } + newDeviceConfig.billValidator = currentDeviceConfig.billValidator } if (currentDeviceConfig.kioskPrinter) { newDeviceConfig.kioskPrinter.model = currentDeviceConfig.kioskPrinter.model @@ -229,6 +237,7 @@ const upgrade = () => { async.apply(updateSupervisor), async.apply(updateSystemd), async.apply(updateUdev), + async.apply(updateGSR50), async.apply(updateAcpChromium), async.apply(report, null, 'finished.'), async.apply(restartWatchdogService), diff --git a/lib/gsr50/binaries/FujitsuGSR50 b/lib/gsr50/binaries/FujitsuGSR50 new file mode 100644 index 000000000..1fb412faa Binary files /dev/null and b/lib/gsr50/binaries/FujitsuGSR50 differ diff --git a/lib/gsr50/binaries/FujitsuGSR50.dll b/lib/gsr50/binaries/FujitsuGSR50.dll new file mode 100644 index 000000000..3edbc03e6 Binary files /dev/null and b/lib/gsr50/binaries/FujitsuGSR50.dll differ diff --git a/lib/gsr50/gsr50.js b/lib/gsr50/gsr50.js index 7ec79095f..5ccd4110d 100644 --- a/lib/gsr50/gsr50.js +++ b/lib/gsr50/gsr50.js @@ -298,6 +298,7 @@ Gsr50.prototype.setDeviceCashUnits = function setDeviceCashUnits (cassettes, rec } }) }, + {}, _.range(0, this.numberOfCashboxes) )