{
uint8_t timeout = 0;
+ if (USB_DeviceState != DEVICE_STATE_Configured)
+ return;
+
// TODO: handle NKRO report
/* Select the Keyboard Report Endpoint */
Endpoint_SelectEndpoint(KEYBOARD_IN_EPNUM);
#ifdef MOUSE_ENABLE
uint8_t timeout = 0;
+ if (USB_DeviceState != DEVICE_STATE_Configured)
+ return;
+
/* Select the Mouse Report Endpoint */
Endpoint_SelectEndpoint(MOUSE_IN_EPNUM);
{
uint8_t timeout = 0;
+ if (USB_DeviceState != DEVICE_STATE_Configured)
+ return;
+
report_extra_t r = {
.report_id = REPORT_ID_SYSTEM,
.usage = data
{
uint8_t timeout = 0;
+ if (USB_DeviceState != DEVICE_STATE_Configured)
+ return;
+
report_extra_t r = {
.report_id = REPORT_ID_CONSUMER,
.usage = data