Skip to content

Commit

Permalink
Read correct msgpack type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Spieler committed Dec 15, 2014
1 parent fb3b6f1 commit 97670a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions command.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void command_write_flash(int argc, cmp_ctx_t *args, cmp_ctx_t *out, bootloader_c

bool success;

cmp_read_u64(args, &tmp);
cmp_read_uinteger(args, &tmp);
address = (void *)tmp;

size = 64;
Expand Down Expand Up @@ -48,7 +48,7 @@ void command_read_flash(int argc, cmp_ctx_t *args, cmp_ctx_t *out, bootloader_co
uint64_t tmp;
uint32_t size;

cmp_read_u64(args, &tmp);
cmp_read_uinteger(args, &tmp);
address = (void *)tmp;

cmp_read_u32(args, &size);
Expand All @@ -68,7 +68,7 @@ void command_crc_region(int argc, cmp_ctx_t *args, cmp_ctx_t *out, bootloader_co
uint32_t size;
uint64_t tmp;

cmp_read_u64(args, &tmp);
cmp_read_uinteger(args, &tmp);
address = (void *)tmp;
cmp_read_uint(args, &size);

Expand Down

0 comments on commit 97670a4

Please sign in to comment.