Skip to content
Snippets Groups Projects
Commit 95a4e754 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

msba2/tools: Fix cppcheck issues

parent 9ed39342
No related branches found
No related tags found
No related merge requests found
...@@ -854,7 +854,7 @@ static void download_main(int event) ...@@ -854,7 +854,7 @@ static void download_main(int event)
// bootloader again. Intead, we need to download a tiny ARM // bootloader again. Intead, we need to download a tiny ARM
// program that reconfigures the hardware and then jumps to zero. // program that reconfigures the hardware and then jumps to zero.
//snprintf(buf, sizeof(buf), "G %d A\r\n", 0); //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); xmit_cmd(buf, 4);
return; return;
......
...@@ -120,8 +120,8 @@ int read_intel_hex(const char *filename) ...@@ -120,8 +120,8 @@ int read_intel_hex(const char *filename)
int int
parse_hex_line(char *line) parse_hex_line(char *line)
{ {
int addr, code, num; unsigned int addr, code, num;
int sum, len, cksum, i; unsigned int sum, len, cksum, i;
char *ptr; char *ptr;
num = 0; num = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment