From dbdc188645086a56211eb87e729f7184f1485cbd Mon Sep 17 00:00:00 2001 From: Ake Hedman Date: Fri, 22 Nov 2024 16:33:49 +0100 Subject: [PATCH] Fixed status printout --- src/vscp/common/vscp-bootdevice-vscp.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/vscp/common/vscp-bootdevice-vscp.cpp b/src/vscp/common/vscp-bootdevice-vscp.cpp index 7debb7abb..0be19c99f 100644 --- a/src/vscp/common/vscp-bootdevice-vscp.cpp +++ b/src/vscp/common/vscp-bootdevice-vscp.cpp @@ -244,9 +244,11 @@ CBootDevice_VSCP::deviceInit(cguid &ourguid, uint16_t devicecode, bool bAbortOnF m_stdRegs.getFirmwareDeviceCode()); if (nullptr != m_statusCallback) { m_statusCallback(-1, - "Firmware device code is not equal! Firmware: {0} Device: {1}", - m_firmwaredeviceCode, - m_stdRegs.getFirmwareDeviceCode()); + vscp_str_format( + "Firmware device code is not equal! Firmware: {0} Device: {1}", + m_firmwaredeviceCode, + m_stdRegs.getFirmwareDeviceCode()) + .c_str()); } if (bAbortOnFirmwareCodeFail) { return VSCP_ERROR_PARAMETER;