kbd: use macros
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
#include "paracomm.h"
|
||||
#include "parallel.h"
|
||||
|
||||
#ifndef NOKBD
|
||||
#define NOKBD 1
|
||||
#endif // NOKBD
|
||||
|
||||
ParaComms pc;
|
||||
|
||||
void setup() {
|
||||
@@ -37,7 +41,10 @@ void loop() {
|
||||
}
|
||||
led_counter += 1;
|
||||
|
||||
// checkKbdReset();
|
||||
#if NOKBD
|
||||
#else // NOKBD
|
||||
checkKbdReset();
|
||||
#endif // NOKBD
|
||||
|
||||
uint8_t mosib;
|
||||
if (strobeOccurred(mosib)) {
|
||||
@@ -48,9 +55,9 @@ void loop() {
|
||||
|
||||
if (Serial.available() > 0) {
|
||||
int c = Serial.read();
|
||||
#if 1
|
||||
#if NOKBD
|
||||
pc.SendByte(c);
|
||||
#else
|
||||
#else // NOKBD
|
||||
if (c == 2) {
|
||||
mode = 0;
|
||||
} else if (c == 3) {
|
||||
@@ -62,6 +69,6 @@ void loop() {
|
||||
pc.SendByte(c);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif // NOKBD
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user