Skip to content

Commit

Permalink
print info about storage partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
cubicap committed Jul 8, 2024
1 parent 6646ece commit 58aea5f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/distribution/esp32/esp32.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 58aea5f

Please sign in to comment.