Terminate the hid interrupt out endpoint on deactivate
The endpoint is not properly closed and reopened, when unplugging / re-plugging the USB connector (on a device with a second power source and no VBUS detection). This causes issues receiving data on the HID out endpoint by Interrupt transfer.
@eclipse-threadx/iot-threadx-committers, I need a volunteer with porting expertise to review this contribution.
This looks like up your alley, @rahmanih. Do you think you could review this contribution?
Do you think you will be able to look at this, @rahmanih?
@fdesbiens the point is valid and can be merged
This is a bug we also encountered. The solution is fine, but I would add an additional safeguard with an if statement, because even with the preprocessor flag enabled, there might be an instance without out_ep, since it's optional
@Pjgorgon you are right it optional endpoint, @fdesbiens can you merge this PR since it was approved by commuter I will make another PR