From 94a658ce8ac62494c2a5d435da077345bc4963d5 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 15 May 2024 15:02:10 +0200 Subject: [PATCH] Add some IMPORTANT comments about the format of JSON files to be downloaded. --- UpdatePTUDevCtrl/update.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UpdatePTUDevCtrl/update.cpp b/UpdatePTUDevCtrl/update.cpp index 5ae710d..bcda1f7 100644 --- a/UpdatePTUDevCtrl/update.cpp +++ b/UpdatePTUDevCtrl/update.cpp @@ -525,14 +525,18 @@ bool Update::updatePrinterTemplate(int templateIdx, QString jsFile) const { } bool Update::updateConfig(QString jsFile) { + // IMPORTANT: the JSON-file has a 'title'-line: the value MUST be 'DC2C_config' return downloadJson(FileTypeJson::CONFIG, 0, jsFile); } bool Update::updateCashConf(QString jsFile) { + // IMPORTANT: the JSON-file has a 'title'-line: the value MUST be 'DC2C_cash ' + // Note the twp spaces after DC2C_cash !! return downloadJson(FileTypeJson::CASH, 0, jsFile); } bool Update::updateDeviceConf(QString jsFile) { + // IMPORTANT: the JSON-file has a 'title'-line: the value MUST be 'DC2C_device' return downloadJson(FileTypeJson::DEVICE, 0, jsFile); }