TimJTi commented on code in PR #3068: URL: https://github.com/apache/nuttx-apps/pull/3068#discussion_r2106280437
########## boot/nxboot/nxboot_main.c: ########## @@ -28,28 +28,233 @@ #include <stdio.h> #include <syslog.h> +#include <nuttx/ascii.h> +#include <sys/param.h> #include <nxboot.h> #include <sys/boardctl.h> +/**************************************************************************** + * Private Types + ****************************************************************************/ + +typedef struct progress_msgs_s +{ + enum progress_msg_e idx; /* Index to the message */ + const char *msg; /* Corresponsing text message */ +} progress_msgs_t; + +/**************************************************************************** + * Public Data + ****************************************************************************/ + +bool progress_dots_started = false; Review Comment: Not "can be" but "should be". Good spot. I'll redeclare it, and also `progress_percent_started`, as static. They should also have a g_ prefix to be pedantic. ########## boot/nxboot/nxboot_main.c: ########## @@ -28,28 +28,233 @@ #include <stdio.h> #include <syslog.h> +#include <nuttx/ascii.h> +#include <sys/param.h> #include <nxboot.h> #include <sys/boardctl.h> +/**************************************************************************** + * Private Types + ****************************************************************************/ + +typedef struct progress_msgs_s +{ + enum progress_msg_e idx; /* Index to the message */ + const char *msg; /* Corresponsing text message */ +} progress_msgs_t; + +/**************************************************************************** + * Public Data + ****************************************************************************/ + +bool progress_dots_started = false; +#ifdef CONFIG_NXBOOT_PRINTF_PROGRESS_PERCENT +bool progress_percent_started = false; Review Comment: Yep - as above. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org