From 58aea5f4cccfd7940c9dff2a497ef9122267e574 Mon Sep 17 00:00:00 2001 From: Petr Kubica Date: Mon, 8 Jul 2024 19:54:56 +0200 Subject: [PATCH] print info about storage partitions --- src/distribution/esp32/esp32.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/distribution/esp32/esp32.ts b/src/distribution/esp32/esp32.ts index f3eb931..c27e091 100644 --- a/src/distribution/esp32/esp32.ts +++ b/src/distribution/esp32/esp32.ts @@ -213,8 +213,16 @@ export function info(Package: Package): string { if (dataBuffer === undefined) { throw new Error("File not found in package"); } + const isStorage = partition["isStorage"]; - output += " " + file + " (at 0x" + address.toString(16) + ", " + dataBuffer.length + " bytes)\n"; + output += ` ${file} (at 0x${address.toString(16)}, ${dataBuffer.length}`; + if (isStorage) { + output += ", storage)"; + } + else { + output += ")"; + } + output += "\n"; } return output;