From ccacdf44b6c5241ce05769e777008767a7ed8939 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 4 Aug 2014 11:09:51 +0100 Subject: stmhal: Clean up reset/soft-reset code; fix bug init'ing VCP exc. Make a clearer distinction between init functions that must be done before any scripts can run (xxx_init0) and those that can be safely deferred (xxx_init). Fix bug initialising USB VCP exception. Addresses issue #788. Re-order some init function to improve reliability of reset/soft-reset. --- stmhal/readline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal/readline.c') diff --git a/stmhal/readline.c b/stmhal/readline.c index 14c9b9fb9..5ef86c44f 100644 --- a/stmhal/readline.c +++ b/stmhal/readline.c @@ -52,7 +52,7 @@ static const char *readline_hist[READLINE_HIST_SIZE] = {NULL, NULL, NULL, NULL, enum { ESEQ_NONE, ESEQ_ESC, ESEQ_ESC_BRACKET, ESEQ_ESC_BRACKET_DIGIT, ESEQ_ESC_O }; -void readline_init(void) { +void readline_init0(void) { memset(readline_hist, 0, READLINE_HIST_SIZE * sizeof(const char*)); } -- cgit v1.2.3