diff options
| -rw-r--r-- | converter/m0110_usb/README.md | 2 | ||||
| -rw-r--r-- | converter/m0110_usb/config.h | 5 | ||||
| -rw-r--r-- | converter/m0110_usb/matrix.c | 7 | ||||
| -rw-r--r-- | protocol/m0110.c | 2 |
4 files changed, 5 insertions, 11 deletions
diff --git a/converter/m0110_usb/README.md b/converter/m0110_usb/README.md index 0ad3631f7..059b840c3 100644 --- a/converter/m0110_usb/README.md +++ b/converter/m0110_usb/README.md | |||
| @@ -28,7 +28,7 @@ In this pic: | |||
| 28 | 3. `DATA`(Green) | 28 | 3. `DATA`(Green) |
| 29 | 4. `+5V`(Yellow) | 29 | 4. `+5V`(Yellow) |
| 30 | 30 | ||
| 31 | Not that wire colors may vary in your cable. | 31 | Note that wire colors may vary in your cable. |
| 32 | 32 | ||
| 33 | 33 | ||
| 34 | ### Pinout | 34 | ### Pinout |
diff --git a/converter/m0110_usb/config.h b/converter/m0110_usb/config.h index d2e904077..b1b971ec9 100644 --- a/converter/m0110_usb/config.h +++ b/converter/m0110_usb/config.h | |||
| @@ -36,9 +36,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 36 | /* Locking Caps Lock support */ | 36 | /* Locking Caps Lock support */ |
| 37 | //#define MATRIX_HAS_LOCKING_CAPS | 37 | //#define MATRIX_HAS_LOCKING_CAPS |
| 38 | 38 | ||
| 39 | /* key combination for command */ | 39 | /* Backspace for command key */ |
| 40 | #define BACKSPACE_CODE 0x33 | ||
| 40 | #define IS_COMMAND() ( \ | 41 | #define IS_COMMAND() ( \ |
| 41 | keyboard_report->mods == (MOD_BIT(KC_LALT) | MOD_BIT(KC_LGUI)) \ | 42 | matrix_is_on((BACKSPACE_CODE>>3)&0x0F, BACKSPACE_CODE&0x07) \ |
| 42 | ) | 43 | ) |
| 43 | 44 | ||
| 44 | 45 | ||
diff --git a/converter/m0110_usb/matrix.c b/converter/m0110_usb/matrix.c index 1ca6894c4..c71a4874c 100644 --- a/converter/m0110_usb/matrix.c +++ b/converter/m0110_usb/matrix.c | |||
| @@ -60,13 +60,6 @@ uint8_t matrix_cols(void) | |||
| 60 | 60 | ||
| 61 | void matrix_init(void) | 61 | void matrix_init(void) |
| 62 | { | 62 | { |
| 63 | print_enable = true; | ||
| 64 | debug_enable = true; | ||
| 65 | debug_matrix = false; | ||
| 66 | debug_keyboard = false; | ||
| 67 | debug_mouse = false; | ||
| 68 | print("debug enabled.\n"); | ||
| 69 | |||
| 70 | m0110_init(); | 63 | m0110_init(); |
| 71 | // initialize matrix state: all keys off | 64 | // initialize matrix state: all keys off |
| 72 | for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00; | 65 | for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00; |
diff --git a/protocol/m0110.c b/protocol/m0110.c index a669c85a4..8bf7cfe4f 100644 --- a/protocol/m0110.c +++ b/protocol/m0110.c | |||
| @@ -321,7 +321,7 @@ static inline uint8_t instant(void) | |||
| 321 | m0110_send(M0110_INSTANT); | 321 | m0110_send(M0110_INSTANT); |
| 322 | uint8_t data = m0110_recv(); | 322 | uint8_t data = m0110_recv(); |
| 323 | if (data != M0110_NULL) { | 323 | if (data != M0110_NULL) { |
| 324 | phex(data); print(" "); | 324 | debug_hex(data); debug(" "); |
| 325 | } | 325 | } |
| 326 | return data; | 326 | return data; |
| 327 | } | 327 | } |
