diff --git a/Shell.c b/Shell.c index 3125bfe..00a9504 100644 --- a/Shell.c +++ b/Shell.c @@ -66,7 +66,7 @@ static int shell_parse(char * buf, char** argv, unsigned short maxargs); /** * Prints the command shell prompt */ -static void shell_prompt(); +static void shell_prompt(void); /** * Helper function for formatting text in shell_printf and shell_printf_pm @@ -115,7 +115,7 @@ bool shell_register(shell_program_t program, const char * string) return false; } -void shell_unregister_all() +void shell_unregister_all(void) { unsigned char i; @@ -125,7 +125,7 @@ void shell_unregister_all() } } -void shell_print_commands() +void shell_print_commands(void) { unsigned char i; @@ -255,7 +255,9 @@ void shell_printf(const char * fmt, ...) va_end(argl); } -void shell_printf_pm(const char * fmt, ...) +#ifdef ARDUINO + +void shell_printf_pm(const char *fmt, ...) { // First copy to RAM memcpy_P(shellfmtbuf, fmt, strlen_P(fmt) + 1); @@ -264,8 +266,9 @@ void shell_printf_pm(const char * fmt, ...) shell_format(shellfmtbuf, argl); va_end(argl); } +#endif -void shell_task() +void shell_task(void) { unsigned int i = 0, retval = 0; int argc = 0; @@ -398,7 +401,7 @@ static int shell_parse(char * buf, char ** argv, unsigned short maxargs) return argc; } -static void shell_prompt() +static void shell_prompt(void) { #ifdef ARDUINO shell_print_pm(PSTR("device>")); diff --git a/Shell.h b/Shell.h index 97a389d..e5eb861 100644 --- a/Shell.h +++ b/Shell.h @@ -186,7 +186,7 @@ extern "C" { * * Erases all entries on the command list, returning it to it�s default status. */ - void shell_unregister_all(); + void shell_unregister_all(void); /** * @brief Prints the list of registered commands @@ -194,7 +194,7 @@ extern "C" { * Prints a list of available commands to the terminal using the callback * functions provided on initialization. */ - void shell_print_commands(); + void shell_print_commands(void); /** * @brief Prints error messages to the terminal screen @@ -253,7 +253,7 @@ extern "C" { * this function should be called frequently so it can handle the input from the * data stream. */ - void shell_task(); + void shell_task(void); #ifdef ARDUINO /**