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_list args;
va_start(args, fmt); va_start(args, fmt);
vsnprintf(tmp, sizeof(tmp), fmt, args); vsnprintf(tmp, sizeof(tmp), fmt, args);
Serial.println(tmp);
io.clear(); io.clear();
io.error(tmp); io.error(tmp);
va_end(args); va_end(args);
@ -73,8 +72,9 @@ void setup() {
void loop() { void loop() {
if (ps2.available()) { if (ps2.available()) {
unsigned key = ps2.read(); unsigned scan = ps2.read2();
if (!ps2.isbreak()) byte key = scan & 0xff;
if (scan < 0x100)
io.down(key); io.down(key);
else else
switch (key) { switch (key) {