diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-01-16 18:36:36 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-01-16 18:36:36 +0100 |
commit | fb6e2fed7132ae776c62aecc2ee09ad532d482d3 (patch) | |
tree | a7a83b9d78f4972b2f2ac513b02f4fc8e49d8e6e /src/arch/msp430fr5994lp | |
parent | 84f2392ec92f63963912f18726d16e87d0d0925f (diff) |
msp430fr: use 16-byte uart input buffer
Diffstat (limited to 'src/arch/msp430fr5994lp')
-rw-r--r-- | src/arch/msp430fr5994lp/driver/stdin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |