string_to_digit changed back to stroul

This commit is contained in:
yul 2022-05-24 13:21:02 +02:00
parent 3768522850
commit 10f6b3677f
1 changed files with 4 additions and 4 deletions

View File

@ -118,9 +118,9 @@ int uart_parse_command(char *user_input, cmd_t *cmd) {
} }
uint32_t uart_string_to_int(const char *str) { uint32_t uart_string_to_int(const char *str) {
// Convert input in port number //char* tmp;
char* tmp; //unsigned long long int hex = strtoull(str, &tmp, 16);
unsigned long long int hex = strtoull(str, &tmp, 16); unsigned long int hex = strtoul(str, NULL, 16);
return hex; return hex;
} }