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) {
// 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;
}
@ -130,4 +130,4 @@ void uart_send_ok(){
void uart_send_err(){
uart_send(ERR, 6);
}
}