From fc84d454707aa77f6d7fd88bb88d05df81f1a04c Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Wed, 1 Oct 2014 23:54:08 -0700 Subject: [PATCH] Setting max packet size (Interrupt) to 64 bytes - 128 bytes is invalid for USB 2.0 Full-Speed (max 64 bytes) --- Output/pjrcUSB/arm/usb_desc.h | 2 +- Output/pjrcUSB/avr/usb_keyboard_serial.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Output/pjrcUSB/arm/usb_desc.h b/Output/pjrcUSB/arm/usb_desc.h index c85923e..30aeedd 100644 --- a/Output/pjrcUSB/arm/usb_desc.h +++ b/Output/pjrcUSB/arm/usb_desc.h @@ -66,7 +66,7 @@ #define NKRO_KEYBOARD_INTERFACE 1 // NKRO Keyboard #define NKRO_KEYBOARD_ENDPOINT 2 -#define NKRO_KEYBOARD_SIZE 128 +#define NKRO_KEYBOARD_SIZE 64 #define NKRO_KEYBOARD_INTERVAL 1 #define CDC_IAD_DESCRIPTOR 1 diff --git a/Output/pjrcUSB/avr/usb_keyboard_serial.h b/Output/pjrcUSB/avr/usb_keyboard_serial.h index 8f70827..aac7c7d 100644 --- a/Output/pjrcUSB/avr/usb_keyboard_serial.h +++ b/Output/pjrcUSB/avr/usb_keyboard_serial.h @@ -203,7 +203,7 @@ int8_t usb_serial_set_control(uint8_t signals); // set DSR, DCD, RI, etc #define KEYBOARD_NKRO_INTERFACE 0 #define KEYBOARD_NKRO_ENDPOINT 1 -#define KEYBOARD_NKRO_SIZE 128 +#define KEYBOARD_NKRO_SIZE 64 #define KEYBOARD_NKRO_HID_BUFFER EP_DOUBLE_BUFFER #define KEYBOARD_INTERFACE 1