Skip to content
Snippets Groups Projects
Commit e69e22ff authored by Tobias Kahlki's avatar Tobias Kahlki
Browse files

sysdata: Moved update of current slot to correct position

parent 6264db01
No related branches found
No related tags found
1 merge request!115cmd: Activated the boot mode command for TANARO
...@@ -71,6 +71,8 @@ static int do_sysdata( struct cmd_tbl *cmdtp, int flag, int argc, ...@@ -71,6 +71,8 @@ static int do_sysdata( struct cmd_tbl *cmdtp, int flag, int argc,
switching_table_t switch_data; switching_table_t switch_data;
if ( strcmp( argv[2], "status" ) == 0 ) { if ( strcmp( argv[2], "status" ) == 0 ) {
sysdata_swtchslot_update_current_slot();
ret = get_switchslot_data( &switch_data ); ret = get_switchslot_data( &switch_data );
if ( ret ) if ( ret )
printf( "Error (%d) on retrieving data.\n", ret ); printf( "Error (%d) on retrieving data.\n", ret );
...@@ -92,8 +94,6 @@ static int do_sysdata( struct cmd_tbl *cmdtp, int flag, int argc, ...@@ -92,8 +94,6 @@ static int do_sysdata( struct cmd_tbl *cmdtp, int flag, int argc,
printf( "Global Boot counter state: %s\n", printf( "Global Boot counter state: %s\n",
GET_GLOBAL_BOOT_COUNT_ENABLE(switch_data.enable_flags) ? "enabled" : "disabled" ); GET_GLOBAL_BOOT_COUNT_ENABLE(switch_data.enable_flags) ? "enabled" : "disabled" );
sysdata_swtchslot_update_current_slot();
char slot_partition[2]; char slot_partition[2];
slot_partition[0] = SLOT_NUM2ID(switch_data.current_boot_slot); slot_partition[0] = SLOT_NUM2ID(switch_data.current_boot_slot);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment