mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
readmem: fix entry of numbers and allow hexadecimal
This commit is contained in:
parent
f3b412f8fe
commit
2f324918b3
2 changed files with 5 additions and 5 deletions
|
@ -640,10 +640,10 @@ static int CmdReadmem(const char *Cmd) {
|
|||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_int0("a", "adr", "<dec>", "flash address to start reading from"),
|
||||
arg_int0("l", "len", "<dec>", "length (default 32 or 512KB)"),
|
||||
arg_u64_0("a", "adr", "<dec>", "flash address to start reading from"),
|
||||
arg_u64_0("l", "len", "<dec>", "length (default 32 or 512KB)"),
|
||||
arg_str0("f", "file", "<fn>", "save to file"),
|
||||
arg_int0("c", "cols", "<dec>", "column breaks"),
|
||||
arg_u64_0("c", "cols", "<dec>", "column breaks"),
|
||||
arg_lit0("r", "raw", "use raw address mode: read from anywhere, not just flash"),
|
||||
arg_param_end
|
||||
};
|
||||
|
|
|
@ -1139,7 +1139,7 @@ int main(int argc, char *argv[]) {
|
|||
show_help(false, exec_name);
|
||||
return 1;
|
||||
}
|
||||
uint32_t tmpaddr = strtol(argv[i + 1], NULL, 10);
|
||||
uint32_t tmpaddr = strtoul(argv[i + 1], NULL, 0);
|
||||
dumpmem_addr = tmpaddr;
|
||||
i++;
|
||||
continue;
|
||||
|
@ -1150,7 +1150,7 @@ int main(int argc, char *argv[]) {
|
|||
show_help(false, exec_name);
|
||||
return 1;
|
||||
}
|
||||
uint32_t tmplen = strtol(argv[i + 1], NULL, 10);
|
||||
uint32_t tmplen = strtoul(argv[i + 1], NULL, 0);
|
||||
dumpmem_len = tmplen;
|
||||
i++;
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue