From cccd4186f43ee89a8841373fa1557daf48ae7181 Mon Sep 17 00:00:00 2001 From: Louis Rousseau Date: Mon, 19 Dec 2016 01:51:11 -0500 Subject: [PATCH] adb_usb/matrix.c : changed size of handler_id from uint16_t to uint8_t --- converter/adb_usb/matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/converter/adb_usb/matrix.c b/converter/adb_usb/matrix.c index febd1c63..83f46041 100644 --- 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 - uint16_t handler_id = adb_host_talk(ADB_ADDR_KEYBOARD, ADB_REG_3); + uint8_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: -- 2.39.3