Strip out features to allow minimum firmware sizes (#8645)

This commit is contained in:
Joel Challis 2020-04-01 21:06:22 +01:00 committed by GitHub
parent c217186bea
commit 58a9c84d6b
Failed to generate hash of commit
6 changed files with 30 additions and 11 deletions

View file

@ -158,10 +158,12 @@ typedef struct {
} __attribute__((packed)) vusb_mouse_report_t;
static void send_mouse(report_mouse_t *report) {
#if defined(MOUSE_ENABLE)
vusb_mouse_report_t r = {.report_id = REPORT_ID_MOUSE, .report = *report};
if (usbInterruptIsReady3()) {
usbSetInterrupt3((void *)&r, sizeof(vusb_mouse_report_t));
}
#endif
}
#ifdef EXTRAKEY_ENABLE