Skip to content

Commit

Permalink
msba2/tools: Fix cppcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Nohlgård committed Feb 16, 2017
1 parent 9ed3934 commit 95a4e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion boards/msba2-common/tools/src/download.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ static void download_main(int event)
// bootloader again. Intead, we need to download a tiny ARM
// program that reconfigures the hardware and then jumps to zero.
//snprintf(buf, sizeof(buf), "G %d A\r\n", 0);
snprintf(buf, sizeof(buf), "W %u %d\r\n", chip->ram_addr, chip->bootprog[0] * 4);
snprintf(buf, sizeof(buf), "W %u %u\r\n", chip->ram_addr, chip->bootprog[0] * 4);
xmit_cmd(buf, 4);
return;

Expand Down
4 changes: 2 additions & 2 deletions boards/msba2-common/tools/src/ihex.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ int read_intel_hex(const char *filename)
int
parse_hex_line(char *line)
{
int addr, code, num;
int sum, len, cksum, i;
unsigned int addr, code, num;
unsigned int sum, len, cksum, i;
char *ptr;

num = 0;
Expand Down

0 comments on commit 95a4e75

Please sign in to comment.