Remove only half-working check if download of json-conf-file worked.

This commit is contained in:
Gerhard Hoffmann 2023-12-15 09:33:57 +01:00
parent 5d7d1a2870
commit 12f48ad1bb

View File

@ -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;
}