diff --git a/uart_commands.c b/uart_commands.c index 1e3645e..1bea4aa 100644 --- a/uart_commands.c +++ b/uart_commands.c @@ -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); -} \ No newline at end of file +}