diff --git a/DownloadDCJsonFiles/main.cpp b/DownloadDCJsonFiles/main.cpp index 21e32f9..42ecd7b 100644 --- a/DownloadDCJsonFiles/main.cpp +++ b/DownloadDCJsonFiles/main.cpp @@ -144,7 +144,7 @@ int main(int argc, char **argv) { } } - // qCritical() << "JSON FILES TO UPDATE" << filesToUpdate; + qCritical() << __LINE__ << "JSON FILES TO UPDATE" << filesToUpdate; Update update(customerRepo, QString::number(customerNr), @@ -153,8 +153,10 @@ int main(int argc, char **argv) { plugInName, workingDir); - update.doUpdate(); - // update.doUpdate(filesToUpdate, mountPath.has_value()); + if (!filesToUpdate.empty()) { + update.doUpdate(filesToUpdate, mountPath.has_value()); + } + // update.checkJsonVersions(); //update.checkJsonVersions(filesToUpdate); diff --git a/DownloadDCJsonFiles/update.cpp b/DownloadDCJsonFiles/update.cpp index 586233a..5f773f9 100644 --- a/DownloadDCJsonFiles/update.cpp +++ b/DownloadDCJsonFiles/update.cpp @@ -107,7 +107,7 @@ Update::Update(QString customerRepository, char const *serialInterface, char const *baudrate) : QObject(parent) - // , m_hw(loadDCPlugin(QDir(plugInDir), pluginName)) + , m_hw(loadDCPlugin(QDir(plugInDir), pluginName)) , m_serialInterface(serialInterface) , m_baudrate(baudrate) , m_customerRepository(customerRepository) @@ -145,7 +145,8 @@ Update::~Update() { // unloadDCPlugin(); } -bool Update::doUpdate() { +#if 0 +bool Update::doUpdate() { // test function int numberOfFiles = 3; @@ -178,6 +179,7 @@ bool Update::doUpdate() { return true; } +#endif bool Update::doUpdate(QStringList const &filesToWorkOn, bool usbStickDetected) {