1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-30 22:29:56 +00:00

Clear buffer on read.

This commit is contained in:
Thomas Harte 2023-11-23 22:16:08 -05:00
parent 7e8020df59
commit 019d987623

View File

@ -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: