Skip to content

Commit

Permalink
Merge pull request #197 from NordicSemiconductor/improvement/suit-size
Browse files Browse the repository at this point in the history
Displaying "SUIT envelope" next to Size for SUIT files
  • Loading branch information
philips77 authored Oct 15, 2024
2 parents 6fbe45d + 3b15a55 commit 840d940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ private void trySuitEnvelope(@NonNull final byte[] data) {
try {
final byte[] hash = SUITImage.getHash(data);
binding.fileHash.setText(StringUtils.toHex(hash));
binding.fileSize.setText(getString(R.string.image_upgrade_size_value, data.length));
binding.fileSize.setText(getString(R.string.image_upgrade_size_value_suit, data.length));
binding.actionStart.setEnabled(true);
binding.status.setText(R.string.image_upgrade_status_ready);
requiresModeSelection = false;
Expand Down
1 change: 1 addition & 0 deletions sample/src/main/res/values/strings_image_upgrade.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<string name="image_upgrade_file_name">Name:</string>
<string name="image_upgrade_size">Size:</string>
<string name="image_upgrade_size_value">%d bytes</string>
<string name="image_upgrade_size_value_suit">%d bytes (SUIT envelope)</string>
<string name="image_upgrade_hash">Hash:</string>
<string name="image_upgrade_status">State:</string>
<string name="image_upgrade_speed">%.1f kB/s</string>
Expand Down

0 comments on commit 840d940

Please sign in to comment.