HID Project and Adafruit problem with function

Hi solracmedi,
welcome to the arduino forum.
For the code you haven't posted I can't analyse it and can't make suggestions how to solve the problem

best regards Stefan