From 10f6b3677fa481946dc19c9633a736d97b3ed44e Mon Sep 17 00:00:00 2001 From: yul Date: Tue, 24 May 2022 13:21:02 +0200 Subject: [PATCH] string_to_digit changed back to stroul --- uart_commands.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 +}