From 9dbd438372c74f7ede42f66e76c9c91a7556dcc7 Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Wed, 17 Dec 2014 15:12:38 +0000 Subject: [PATCH] cleanup --- apple1.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apple1.ino b/apple1.ino index 21988b8..26ded56 100644 --- a/apple1.ino +++ b/apple1.ino @@ -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) {