]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - converter/m0110_usb/matrix.c
Add option 7bit data to serial_soft.c
[tmk_firmware.git] / converter / m0110_usb / matrix.c
index 1ca6894c440b4fd71e1d994c1bd13bec76db476e..2189c0b56fe492ab0b58a557aa084589132077a9 100644 (file)
@@ -60,13 +60,6 @@ uint8_t matrix_cols(void)
 
 void matrix_init(void)
 {
-    print_enable = true;
-    debug_enable = true;
-    debug_matrix = false;
-    debug_keyboard = false;
-    debug_mouse = false;
-    print("debug enabled.\n");
-
     m0110_init();
     // initialize matrix state: all keys off
     for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00;
@@ -81,31 +74,11 @@ uint8_t matrix_scan(void)
     is_modified = false;
     key = m0110_recv_key();
 
-#ifdef MATRIX_HAS_LOCKING_CAPS
-    // Send Caps key up event
-    if (matrix_is_on(ROW(CAPS), COL(CAPS))) {
-        is_modified = true;
-        register_key(CAPS_BREAK);
-    }
-#endif
     if (key == M0110_NULL) {
         return 0;
     } else if (key == M0110_ERROR) {
         return 0;
     } else {
-#ifdef MATRIX_HAS_LOCKING_CAPS    
-        if (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) {
-            // CAPS LOCK on:
-            // Ignore LockingCaps key down event
-            if (key == CAPS) return 0;
-            // Convert LockingCaps key up event into down event
-            if (key == CAPS_BREAK) key = CAPS;
-        } else {
-            // CAPS LOCK off:
-            // Ignore LockingCaps key up event
-            if (key == CAPS_BREAK) return 0;
-        }
-#endif        
         is_modified = true;
         register_key(key);
     }