Skip to content

Commit

Permalink
Disable BOOTMAGIC and fix debug prints of adb_usb
Browse files Browse the repository at this point in the history
  • Loading branch information
yashikno committed Nov 7, 2013
1 parent 84b9ce7 commit c531a18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions converter/adb_usb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ ARCH = AVR8
F_USB = $(F_CPU)

# Interrupt driven control endpoint task(+60)
#OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT


# Boot Section Size in *bytes*
Expand All @@ -109,7 +109,7 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
# Build Options
# comment out to disable the options.
#
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
#BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = yes # Console for debug(+400)
Expand Down
8 changes: 4 additions & 4 deletions converter/adb_usb/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ void matrix_init(void)
for (uint8_t i=0; i < MATRIX_ROWS; i++) matrix[i] = 0x00;

debug_enable = true;
debug_matrix = true;
debug_keyboard = true;
debug_mouse = true;
//debug_matrix = true;
//debug_keyboard = true;
//debug_mouse = true;
print("debug enabled.\n");
return;
}
Expand All @@ -108,7 +108,7 @@ uint8_t matrix_scan(void)
} else if (codes == 0xFFFF) { // power key release
register_key(0xFF);
} else if (key0 == 0xFF) { // error
xprintf("adb_host_kbd_recv: ERROR(%02X)\n", codes);
xprintf("adb_host_kbd_recv: ERROR(%d)\n", codes);
return key1;
} else {
register_key(key0);
Expand Down

0 comments on commit c531a18

Please sign in to comment.