From 12f48ad1bb76fa2c98b579290ac36b0f3bc5c1fa Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 15 Dec 2023 09:33:57 +0100 Subject: [PATCH] Remove only half-working check if download of json-conf-file worked. --- update.cpp | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/update.cpp b/update.cpp index 7a4749e..7f5e346 100644 --- a/update.cpp +++ b/update.cpp @@ -376,24 +376,32 @@ bool Update::downloadJson(enum FileTypeJson type, templateIdx, (uint8_t *)ba.data())) { - m_hw->dc_autoRequest(true); - QThread::msleep(500); + /* + * Note: the machine id is contained in DC2C_conf.json. + * The idea was to use this to check if the download of + * the json-file was correct. It did not work, as the + * update of the PSA (to reflect a change in the + * machine id) did not happen immediately. + * + m_hw->dc_autoRequest(true); + QThread::msleep(500); - // testing - m_hw->request_ReadbackMachineID(); - QThread::msleep(500); + // testing + m_hw->request_ReadbackMachineID(); + QThread::msleep(500); - uint8_t data[64]; - memset(data, 0x00, sizeof(data)); - uint8_t length = 0; + uint8_t data[64]; + memset(data, 0x00, sizeof(data)); + uint8_t length = 0; - m_hw->readback_machineIDdata(&length, data); + m_hw->readback_machineIDdata(&length, data); - QThread::msleep(500); + QThread::msleep(500); - QByteArray ba((const char*)data, length); + QByteArray ba((const char*)data, length); - qCritical() << length << "MACHINE ID =" << ba.toHex(':'); + qCritical() << length << "MACHINE ID =" << ba.toHex(':'); + */ ret = true; }