I am working on LPC1837 based development board, with "lpcopen_2_18_lpcxpresso_nxp_lpcxpresso_1837" SDK as start point. I am working on examples "usbd_rom_hid_keyboard" & "usbd_rom_hid_mouse" they work fine as USB keyboard/mouse device to host machine.
I see from the below logic of the code
even if the g_keyBoard.report is empty it is still writing to endpoint, this is creating a continuous stream of packets to host machine, I observed this using Bus-Hound software. Please give your inputs and how to fix this. I would like to send report only if valid data is present.
Thanks & Regards,