summaryrefslogtreecommitdiff
path: root/avr/main.c
diff options
context:
space:
mode:
authorLeo C2014-10-23 02:15:50 +0200
committerLeo C2014-10-23 02:15:50 +0200
commit424b184a9bab3b1b8fe93fbc9e8a6e9d566904c8 (patch)
tree243c9e1801dde49e7ddd33e06c2fc4df28896719 /avr/main.c
parentbad2d92d98f9990ee5ccf509c0eafe5b3af9f4dc (diff)
downloadz180-stamp-424b184a9bab3b1b8fe93fbc9e8a6e9d566904c8.zip
my_getchar() parameter: allow return without new character
Diffstat (limited to 'avr/main.c')
-rw-r--r--avr/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avr/main.c b/avr/main.c
index 2955630..2a1ecd3 100644
--- a/avr/main.c
+++ b/avr/main.c
@@ -144,7 +144,7 @@ static int abortboot(int bootdelay)
*/
if (bootdelay >= 0) {
if (tstc()) { /* we got a key press */
- (void) my_getchar(); /* consume input */
+ (void) my_getchar(1); /* consume input */
my_puts_P(PSTR("\b\b\b 0"));
abort = 1; /* don't auto boot */
}