summaryrefslogtreecommitdiff
path: root/m0110_usb/matrix.c
diff options
context:
space:
mode:
authortmk2012-04-28 01:57:36 +0900
committertmk2012-04-28 01:57:36 +0900
commit12f6e9ffa76f685f7256bf1421f918f90c93add1 (patch)
treea4f81dff6ea8450a4f482e06a957056e74d93734 /m0110_usb/matrix.c
parent0a4fa89548e8c098c65c289865ebbf1e1c29adf4 (diff)
Added M0110A support contributed by skagon@github.
- README is written with markdown notation. - m0110.c can handles Arrow keys and Calc keys of M0110A. - EXTRAFLAGS and EXTRALDFLAGS are added in rules.mk to give flags on make command line.
Diffstat (limited to 'm0110_usb/matrix.c')
-rw-r--r--m0110_usb/matrix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/m0110_usb/matrix.c b/m0110_usb/matrix.c
index f045920cc..11303ee0f 100644
--- a/m0110_usb/matrix.c
+++ b/m0110_usb/matrix.c
@@ -93,6 +93,9 @@ uint8_t matrix_scan(void)
#endif
if (key == M0110_NULL) {
return 0;
+ } else if (key == M0110_ERROR) {
+ // TODO: error recovery or reinit
+ return 0;
} else {
#ifdef MATRIX_HAS_LOCKING_CAPS
if (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) {