Mercurial > public > ostc_companion
diff OSTC4Operations.cpp @ 4:e30f00f760d3 default tip
Cleanup OSTC label and removed url
The computer type will now show OSTC 4/5 instead of only 4. The url has
been removed because it is no longer maintained. The ui header have been
deleted because they are generated files shich should not be under
version controll. Delete locally if you want to force an update of the
dialog layout.
| author | Ideenmodellierer |
|---|---|
| date | Sun, 30 Nov 2025 18:37:32 +0100 |
| parents | 4ace58a7c03c |
| children |
line wrap: on
line diff
--- a/OSTC4Operations.cpp Fri Nov 28 20:00:02 2025 +0100 +++ b/OSTC4Operations.cpp Sun Nov 30 18:37:32 2025 +0100 @@ -59,7 +59,7 @@ QString OSTC4Operations::model() const { - return "OSTC4"; + return "OSTC 4/5"; } HardwareOperations::CompanionFeatures OSTC4Operations::supported() const @@ -114,7 +114,7 @@ LOG_TRACE("Getting model..."); HardwareDescriptor hw = hardwareDescriptor(); if( hw != HW_OSTC4 ) - LOG_THROW("Not an OSTC4."); + LOG_THROW("Not an OSTC4/5."); LOG_TRACE("Getting identity..."); getCommonIdentity(); @@ -187,19 +187,19 @@ OSTC4Operations::OSTC4Operations() : fileChecksum(0,0) { - emulatorName = "OSTC4"; + emulatorName = "OSTC4/5"; } ////////////////////////////////////////////////////////////////////////////// void OSTC4Operations::upgradeFW(const QString &fileName) { - LOG_INFO("Starting OSTC4 firmware upgrade..."); + LOG_INFO("Starting OSTC4/5 firmware upgrade..."); openFirmware(fileName, true); openFirmware(fileName, false); - LOG_INFO("Please wait for OSTC4 to complete installation..."); + LOG_INFO("Please wait for OSTC4/5 to complete installation..."); } ////////////////////////////////////////////////////////////////////////////// @@ -218,7 +218,7 @@ void OSTC4Operations::openFirmware(const QString &fileName, bool dryRun) { - LOG_TRACE("Opening OSTC4 firmware '" << fileName << "'..."); + LOG_TRACE("Opening OSTC4/5 firmware '" << fileName << "'..."); bool forceFirmwareUpdate; bool forceRTEUpdate; @@ -275,11 +275,11 @@ if( _connectMode != SERVICE_MODE ) connectServiceMode(); if( _connectMode != SERVICE_MODE ) - LOG_THROW("Cannot connect OSTC4 service mode..."); + LOG_THROW("Cannot connect OSTC 4/5 service mode..."); //---- Check if needed ? --------------------------------------------- LOG_TRACE("Check part " << part << " is needed ?"); - unsigned char echo = retryCommand(_serial, 'k'); // 0x69 OSTC4 FW Details. + unsigned char echo = retryCommand(_serial, 'k'); // 0x6B OSTC4 FW Details. if( echo != 'k' ) LOG_THROW("Bad firmware details."); @@ -328,7 +328,7 @@ PROGRESS(step++, steps); echo = retryCommand(_serial, 's'); // 0x73 OSTC4 FW Upgrade if( echo != 's' ) - LOG_THROW("Bad OSTC4 FW upgrade commande."); + LOG_THROW("Bad OSTC4/5 FW upgrade commande."); //---- Header PROGRESS(step++, steps);
