mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-23 20:29:42 +00:00
Clear buffer on read.
This commit is contained in:
parent
7e8020df59
commit
019d987623
@ -76,7 +76,10 @@ class KeyboardController {
|
||||
|
||||
uint8_t read() {
|
||||
pic_.apply_edge<1>(false);
|
||||
return input_;
|
||||
|
||||
const uint8_t key = input_;
|
||||
input_ = 0;
|
||||
return key;
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user