From 3a7140fd5133d91fdb00442620a57ae16ea2db76 Mon Sep 17 00:00:00 2001 From: TeTeHacko Date: Fri, 13 Nov 2026 01:33:28 +0100 Subject: [PATCH] FwUpdate: wrong base error names both sha prefixes --- src/helpers/FwUpdate.cpp | 4 +++- src/helpers/FwUpdate.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/helpers/FwUpdate.cpp b/src/helpers/FwUpdate.cpp index 0d1441f0..c638192c 100644 --- a/src/helpers/FwUpdate.cpp +++ b/src/helpers/FwUpdate.cpp @@ -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; } } diff --git a/src/helpers/FwUpdate.h b/src/helpers/FwUpdate.h index 1868c628..4df46283 100644 --- a/src/helpers/FwUpdate.h +++ b/src/helpers/FwUpdate.h @@ -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];