Skip to content

Commit 877deb0

Browse files
Firmware device code saved
1 parent add3abb commit 877deb0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/vscp/common/vscp-bootdevice-pic1.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ CBootDevice_PIC1::deviceInit(cguid& ourguid, uint16_t devicecode, bool bAbortOnF
235235
// Save our local GUID
236236
m_ourguid = ourguid;
237237

238+
// Save Firmware device code
239+
m_firmwaredeviceCode = devicecode;
240+
238241
/*
239242
First do a test to see if the device is already in boot mode
240243
if it is 0x14nn/0x15nn should be returned (nn == nodeid).

src/vscp/common/vscp-bootdevice-vscp.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ CBootDevice_VSCP::deviceInit(cguid &ourguid, uint16_t devicecode, bool bAbortOnF
216216
int rv;
217217
vscpEventEx ex;
218218

219+
// Save our local GUID
220+
m_ourguid = ourguid;
221+
222+
// Save Firmware device code
223+
m_firmwaredeviceCode = devicecode;
224+
219225
// Read standard registers
220226
if (VSCP_ERROR_SUCCESS != m_stdRegs.init(*m_pclient, m_guid, m_guidif, nullptr, REGISTER_DEFAULT_TIMEOUT)) {
221227
spdlog::error("VSCP bootloader: Failed to read standard registers");

0 commit comments

Comments
 (0)