Commit d4936c91 authored by matt's avatar matt
Browse files

Don't truncate app_elf_sha256 when parsing esp_app_desc_t

This isn't currently used except to output debug-esque information about
the parsed header.
parent 82130d47
......@@ -159,7 +159,7 @@ sub parse_app_desc {
$esp_time,
$esp_date,
$esp_idf_ver,
@esp_app_elf_sha256[0..15],
@esp_app_elf_sha256[0..31],
@esp_reserv2[0..19]
) = unpack(
'V' . # uint32_t magic_word; /*!< Magic word ESP_APP_DESC_MAGIC_WORD */
......@@ -187,7 +187,7 @@ sub parse_app_desc {
print("\ttime -> $esp_time\n");
print("\tdate -> $esp_date\n");
print("\tidf_ver -> $esp_idf_ver\n");
print("\tapp_elf_sha256 -> ", (map { sprintf('%x', $_) } @esp_app_elf_sha256), "\n\n");
print("\tapp_elf_sha256 -> ", (map { sprintf('%02x', $_) } @esp_app_elf_sha256), "\n\n");
return($esp_version); # a lot of work just to get the version :D
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment