Add some IMPORTANT comments about the format of JSON files to be downloaded.
This commit is contained in:
		@@ -525,14 +525,18 @@ bool Update::updatePrinterTemplate(int templateIdx, QString jsFile) const {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool Update::updateConfig(QString jsFile) {
 | 
					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);
 | 
					    return downloadJson(FileTypeJson::CONFIG, 0, jsFile);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool Update::updateCashConf(QString 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);
 | 
					    return downloadJson(FileTypeJson::CASH, 0, jsFile);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool Update::updateDeviceConf(QString 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);
 | 
					    return downloadJson(FileTypeJson::DEVICE, 0, jsFile);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user