git://git.gir.st
/
tmk_keyboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8727b96
)
adb_usb/matrix.c : changed size of handler_id from uint16_t to uint8_t
author
Louis Rousseau
<louisrousseau@gmail.com>
Mon, 19 Dec 2016 06:51:11 +0000
(
01:51
-0500)
committer
Louis Rousseau
<louisrousseau@gmail.com>
Mon, 19 Dec 2016 06:51:11 +0000
(
01:51
-0500)
converter/adb_usb/matrix.c
patch
|
blob
|
blame
|
history
diff --git
a/converter/adb_usb/matrix.c
b/converter/adb_usb/matrix.c
index febd1c637a0278c53dc2c878ad902a45acae427f..83f460411122e21e77dc056dae00f419f3db2066 100644
(file)
--- a/
converter/adb_usb/matrix.c
+++ b/
converter/adb_usb/matrix.c
@@
-65,7
+65,7
@@
void matrix_init(void)
// Determine ISO keyboard by handler id
// http://lxr.free-electrons.com/source/drivers/macintosh/adbhid.c?v=4.4#L815
- uint
16_t handler_id =
adb_host_talk(ADB_ADDR_KEYBOARD, ADB_REG_3);
+ uint
8_t handler_id = (uint8_t)
adb_host_talk(ADB_ADDR_KEYBOARD, ADB_REG_3);
switch (handler_id) {
case 0x04: case 0x05: case 0x07: case 0x09: case 0x0D:
case 0x11: case 0x14: case 0x19: case 0x1D: case 0xC1: