Skip to content

Commit

Permalink
V0.83 - Added Lenovo VID
Browse files Browse the repository at this point in the history
  • Loading branch information
spadival committed Mar 28, 2016
1 parent 157cfaf commit 2e6097c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions jni/hu_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ struct usbvpid iusb_vendor_get (libusb_device * device) {
return (5);
if (vendor == USB_VID_MEI)
return (5);
if (vendor == USB_VID_LEN)
return (5);

return (0);
}
Expand Down
1 change: 1 addition & 0 deletions jni/hu_uti.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ strlcpy(char *dst, /* O - Destination string */
#define USB_VID_XIA 0x2717
#define USB_VID_ASU 0x0b05
#define USB_VID_MEI 0x2a45
#define USB_VID_LEN 0x17ef


#define USB_VID_SAM 0x04e8
Expand Down
Binary file modified mazda/headunit
Binary file not shown.
5 changes: 2 additions & 3 deletions mazda/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "hu_aap.h"

#define EVENT_DEVICE_TS "/dev/input/filtered-touchscreen0"
#define EVENT_DEVICE_CMD "/dev/input/filtered-keyboard0"
#define EVENT_DEVICE_CMD "/dev/input/event1"
#define EVENT_TYPE EV_ABS
#define EVENT_CODE_X ABS_X
#define EVENT_CODE_Y ABS_Y
Expand Down Expand Up @@ -606,7 +606,7 @@ uint8_t cd_enter2[] = { -128,0x01,0x08,0,0,0,0,0,0,0,0,0x14,0x22,0x0A,0x0A,0x08

gboolean commander_poll_event(gpointer data)
{
// return TRUE;
return TRUE;

const struct timespec timeout = { .tv_sec = 0, .tv_nsec = 10000};

Expand Down Expand Up @@ -776,7 +776,6 @@ gboolean commander_poll_event(gpointer data)

printf(" } \n");


varint_encode(tp.tv_sec * 100000000 +tp.tv_nsec, buf,3);

queueSend(0,AA_CH_TOU, buf, cmd_size, TRUE);
Expand Down

0 comments on commit 2e6097c

Please sign in to comment.