Skip to content
Snippets Groups Projects
Commit c123f712 authored by Ronny Nilsson's avatar Ronny Nilsson
Browse files

brcm_fw_tool: sequence number was incorrect when wrapping past 999.

This in effect limited the system to max 999 upgrades.
parent 032a07e7
Branches
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ int gen_image_jffs2(const char *in_file, char *sequence_number)
}
sequence = atoi(sequence_number);
sprintf(fixed_sequence, "%03d", sequence+1);
sprintf(fixed_sequence, "%03d", (sequence+1) % 1000);
if (verbose)
fprintf(stderr, "New sequence: %s\n",fixed_sequence);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment