string_to_digit changed back to stroul
This commit is contained in:
parent
3768522850
commit
10f6b3677f
|
@ -118,9 +118,9 @@ int uart_parse_command(char *user_input, cmd_t *cmd) {
|
|||
}
|
||||
|
||||
uint32_t uart_string_to_int(const char *str) {
|
||||
// Convert input in port number
|
||||
char* tmp;
|
||||
unsigned long long int hex = strtoull(str, &tmp, 16);
|
||||
//char* tmp;
|
||||
//unsigned long long int hex = strtoull(str, &tmp, 16);
|
||||
unsigned long int hex = strtoul(str, NULL, 16);
|
||||
return hex;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue