Start removing old serial debugging code

pull/18/head
Jesse Vincent 9 years ago
parent 852ee13f7b
commit e2755cee5c

@ -57,10 +57,6 @@ void save_primary_keymap(byte keymap);
byte load_primary_keymap();
// Keyboard debugging
void report(byte row, byte col, boolean value);
void report_matrix();
// Mouse-related methods

@ -68,10 +68,6 @@ void set_keymap(Key keymapEntry, byte matrixStateEntry) {
if (key_toggled_on(matrixStateEntry)) {
temporary_keymap = primary_keymap = keymapEntry.rawKey;
save_primary_keymap(primary_keymap);
#ifdef DEBUG_SERIAL
Serial.print("keymap is now:");
Serial.print(temporary_keymap);
#endif
}
}
}
@ -305,37 +301,6 @@ byte load_primary_keymap() {
// Debugging Reporting
//
void report_matrix() {
#ifdef DEBUG_SERIAL
if (reporting_counter++ % 100 == 0 ) {
for (byte row = 0; row < ROWS; row++) {
for (byte col = 0; col < COLS; col++) {
Serial.print(matrixState[row][col], HEX);
Serial.print(", ");
}
Serial.println("");
}
Serial.println("");
}
#endif
}
void report(byte row, byte col, boolean value) {
#ifdef DEBUG_SERIAL
Serial.print("Detected a change on ");
Serial.print(col);
Serial.print(" ");
Serial.print(row);
Serial.print(" to ");
Serial.print(value);
Serial.println(".");
#endif
}
// Sending events to the usb host

Loading…
Cancel
Save