File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed
sample/src/main/java/io/runtime/mcumgr/sample/fragment/mcumgr Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -357,25 +357,16 @@ protected void onFileLoaded(@NonNull final byte[] data) {
357
357
for (final McuMgrTargetImage binary : zip .getBinaries ().getImages ()) {
358
358
final byte [] hash = binary .image .getHash ();
359
359
hashBuilder
360
- .append (StringUtils .toHex (hash ));
360
+ .append (StringUtils .toHex (hash ))
361
+ .append ("\n " );
361
362
sizeBuilder
362
363
.append (getString (R .string .image_upgrade_size_value , binary .image .getData ().length ));
363
364
switch (binary .imageIndex ) {
364
- case 0 -> {
365
- hashBuilder .append (" (app core)" );
366
- sizeBuilder .append (" (app core)" );
367
- }
368
- case 1 -> {
369
- hashBuilder .append (" (net core)" );
370
- sizeBuilder .append (" (net core)" );
371
- }
372
- default -> {
373
- hashBuilder .append (" (unknown core (" ).append (binary .imageIndex ).append (")" );
374
- sizeBuilder .append (" (unknown core (" ).append (binary .imageIndex ).append (")" );
375
- }
365
+ case 0 -> sizeBuilder .append (" (app core" );
366
+ case 1 -> sizeBuilder .append (" (net core" );
367
+ default -> sizeBuilder .append (" (unknown core (" ).append (binary .imageIndex );
376
368
}
377
- hashBuilder .append ("\n " );
378
- sizeBuilder .append ("\n " );
369
+ sizeBuilder .append (", slot: " ).append (binary .slot ).append (")\n " );
379
370
}
380
371
hashBuilder .setLength (hashBuilder .length () - 1 );
381
372
sizeBuilder .setLength (sizeBuilder .length () - 1 );
You can’t perform that action at this time.
0 commit comments