diff --git a/global.c b/global.c index 8795909..585bead 100644 --- a/global.c +++ b/global.c @@ -13,9 +13,9 @@ * */ /** global definitions and methods (code) - * @file global.c + * @file * @author King Kévin - * @date 2016-2019 + * @date 2016-2020 */ /* standard libraries */ #include // standard integer types @@ -160,7 +160,7 @@ void sys_tick_handler(void) char user_input_get(void) { - while (!user_input_available) { // wait for user input + while (0 == user_input_used) { // wait for user input to be available (don't trust user_input_available since it user modifiable) __WFI(); // go to sleep } volatile char to_return = user_input_buffer[user_input_i]; // get the next available character diff --git a/global.h b/global.h index ed72c6e..1d21ad0 100644 --- a/global.h +++ b/global.h @@ -13,9 +13,9 @@ * */ /** global definitions and methods (API) - * @file global.h + * @file * @author King Kévin - * @date 2016-2019 + * @date 2016-2020 */ #pragma once