FwUpdate: wrong base error names both sha prefixes
This commit is contained in:
1 parent
232c2bb791
commit
3a7140fd51
2 files changed
+4
-2
No files matched your search
@@ -605,7 +605,9 @@ bool FwUpdate::checkManifest() {
|
||||
return false;
|
||||
}
|
||||
if (memcmp(m->base_sha, baseSha(), 32) != 0) {
|
||||
strcpy(_err, "wrong base image");
|
||||
const uint8_t *b = baseSha();
|
||||
sprintf(_err, "wrong base image (pkg %02x%02x%02x%02x, node %02x%02x%02x%02x)", m->base_sha[0],
|
||||
m->base_sha[1], m->base_sha[2], m->base_sha[3], b[0], b[1], b[2], b[3]);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ private:
|
||||
uint8_t _mani[FW_OTA_MANIFEST_SIZE];
|
||||
bool _flash_diff = false;
|
||||
char _version[48] = { 0 };
|
||||
char _err[48] = { 0 };
|
||||
char _err[64] = { 0 };
|
||||
unsigned long _apply_at = 0;
|
||||
static constexpr uint32_t MAX_UNITS = (0xED000 - 0x27000) / FW_OTA_UNIT + 1; // whole stage
|
||||
uint8_t _have[(MAX_UNITS + 7) / 8];
|
||||
|
||||
Reference in new issue
Block a user