summaryrefslogtreecommitdiff
path: root/stmhal/readline.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-08-04 11:09:51 +0100
committerDamien George <damien.p.george@gmail.com>2014-08-04 11:09:51 +0100
commitccacdf44b6c5241ce05769e777008767a7ed8939 (patch)
tree30dfaa47c94ad4cc321750169830a2d0cd603305 /stmhal/readline.c
parent8dbbbbc793554f920cf352b0e67da46abe3974cf (diff)
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.
Diffstat (limited to 'stmhal/readline.c')
-rw-r--r--stmhal/readline.c2
1 files changed, 1 insertions, 1 deletions
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*));
}