diff options
Diffstat (limited to 'src/arch/msp430fr5994lp/driver')
-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; } |