From: tmk Date: Wed, 4 May 2011 04:42:34 +0000 (+0900) Subject: ad hoc fix for IDLE bug which affects on Mac only. X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=b0b6c333320216492ea63979e9a01f5c4cb090db;p=max%2Ftmk_keyboard.git ad hoc fix for IDLE bug which affects on Mac only. --- diff --git a/pjrc/usb.c b/pjrc/usb.c old mode 100644 new mode 100755 index 3cfe9473..b2c18d98 --- a/pjrc/usb.c +++ b/pjrc/usb.c @@ -681,7 +681,8 @@ ISR(USB_GEN_vect) UEINTX = 0x3A; } } - if (usb_keyboard_idle_config && (++div4 & 3) == 0) { + /* TODO: should keep IDLE rate on each keyboard interface */ + if (!keyboard_nkro && usb_keyboard_idle_config && (++div4 & 3) == 0) { UENUM = KBD_ENDPOINT; if (UEINTX & (1<