From fb6e2fed7132ae776c62aecc2ee09ad532d482d3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 16 Jan 2022 18:36:36 +0100 Subject: msp430fr: use 16-byte uart input buffer --- src/arch/msp430fr5994lp/driver/stdin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch/msp430fr5994lp/driver/stdin.cc') diff --git a/src/arch/msp430fr5994lp/driver/stdin.cc b/src/arch/msp430fr5994lp/driver/stdin.cc index 033349d..6ad43b8 100644 --- a/src/arch/msp430fr5994lp/driver/stdin.cc +++ b/src/arch/msp430fr5994lp/driver/stdin.cc @@ -22,7 +22,7 @@ bool StandardInput::hasKey() char StandardInput::getKey() { char ret = buffer[read_pos++]; - read_pos %= 8; + read_pos %= bufsize; return ret; } -- cgit v1.2.3