summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryiancar <yiangosyiangou@cytanet.com.cy>2020-04-01 17:11:24 +0100
committerFlorian Didron <fdidron@users.noreply.github.com>2020-06-12 17:00:27 +0900
commit9362382ac0cb3fb0f0d4c8ebbcdcf769fbba670a (patch)
tree89baa583666a03d85b4cdd49065db2cd3f1dfce6
parentee1860315df5c0f0a9eb3a44b9df460a9a12836f (diff)
Updated V-USB template to allow usbFunctionWriteOut (#8634)
-rw-r--r--quantum/template/ps2avrgb/usbconfig.h2
-rw-r--r--tmk_core/protocol/vusb/vusb.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/quantum/template/ps2avrgb/usbconfig.h b/quantum/template/ps2avrgb/usbconfig.h
index 6e910a7038..dd51c34df1 100644
--- a/quantum/template/ps2avrgb/usbconfig.h
+++ b/quantum/template/ps2avrgb/usbconfig.h
@@ -113,7 +113,7 @@ section at the end of this file).
* data from a static buffer, set it to 0 and return the data from
* usbFunctionSetup(). This saves a couple of bytes.
*/
-#define USB_CFG_IMPLEMENT_FN_WRITEOUT 0
+#define USB_CFG_IMPLEMENT_FN_WRITEOUT 1
/* Define this to 1 if you want to use interrupt-out (or bulk out) endpoints.
* You must implement the function usbFunctionWriteOut() which receives all
* interrupt/bulk data sent to any endpoint other than 0. The endpoint number
diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c
index c5a0037b1c..bb84ec968f 100644
--- a/tmk_core/protocol/vusb/vusb.c
+++ b/tmk_core/protocol/vusb/vusb.c
@@ -107,8 +107,6 @@ void raw_hid_send(uint8_t *data, uint8_t length) {
usbPoll();
}
usbSetInterrupt3(0, 0);
- usbPoll();
- _delay_ms(1);
}
__attribute__((weak)) void raw_hid_receive(uint8_t *data, uint8_t length) {