Skip to content

Commit

Permalink
Fixed display of firmware code when different
Browse files Browse the repository at this point in the history
  • Loading branch information
grodansparadis committed Nov 22, 2024
1 parent c69f5aa commit 86ed953
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/vscp/common/vscp-bootdevice-vscp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,14 @@ CBootDevice_VSCP::deviceInit(cguid &ourguid, uint8_t devicecode, bool bAbortOnFi
Must be the same as the firmware we try to load is intended for
*/
if (m_firmwaredeviceCode != m_stdRegs.getFirmwareDeviceCode()) {
spdlog::warn("Firware device code is not equal the one on the device local: {0} device: {1}",
spdlog::warn("Firmware device code is not equal the one on the device local: {0} device: {1}",
m_firmwaredeviceCode,
m_stdRegs.getFirmwareDeviceCode());
if (nullptr != m_statusCallback) {
m_statusCallback(-1, "Firware device code is not equal the one on the device local: {0} device: {1}");
m_statusCallback(-1,
"Firmware device code is not equal! <strong>Firmware</strong>: {0} <strong>Device</strong>: {1}",
m_firmwaredeviceCode,
m_stdRegs.getFirmwareDeviceCode());
}
if (bAbortOnFirmwareCodeFail) {
return VSCP_ERROR_PARAMETER;
Expand Down Expand Up @@ -511,8 +514,8 @@ CBootDevice_VSCP::deviceLoad(std::function<void(int, const char *)> statusCallba
int rv;
// vscpEventEx ex;

//uint32_t progress = 0;
// uint32_t addr;
// uint32_t progress = 0;
// uint32_t addr;
std::string strStatus;

m_checksum = 0;
Expand Down

0 comments on commit 86ed953

Please sign in to comment.