This commit is contained in:
Stephen Crane 2014-12-17 15:12:38 +00:00
parent 46f739d976
commit 9dbd438372
1 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,6 @@ void status(const char *fmt, ...) {
va_list args;
va_start(args, fmt);
vsnprintf(tmp, sizeof(tmp), fmt, args);
Serial.println(tmp);
io.clear();
io.error(tmp);
va_end(args);
@ -73,8 +72,9 @@ void setup() {
void loop() {
if (ps2.available()) {
unsigned key = ps2.read();
if (!ps2.isbreak())
unsigned scan = ps2.read2();
byte key = scan & 0xff;
if (scan < 0x100)
io.down(key);
else
switch (key) {