Skip to content

Commit

Permalink
Merge pull request #1218 from RafaelTaranto/chore/gsr50-build
Browse files Browse the repository at this point in the history
fix: update gsr50 on sencha
  • Loading branch information
RafaelTaranto authored Nov 12, 2024
2 parents f1d401c + 5d1edb8 commit b8ceeb3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
17 changes: 13 additions & 4 deletions deploy/codebase/lamassu-machine-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down
Binary file added lib/gsr50/binaries/FujitsuGSR50
Binary file not shown.
Binary file added lib/gsr50/binaries/FujitsuGSR50.dll
Binary file not shown.
1 change: 1 addition & 0 deletions lib/gsr50/gsr50.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ Gsr50.prototype.setDeviceCashUnits = function setDeviceCashUnits (cassettes, rec
}
})
},
{},
_.range(0, this.numberOfCashboxes)
)

Expand Down

0 comments on commit b8ceeb3

Please sign in to comment.