Gamepad using TTP229 I2c help with programming

thank you very much sir for your attention
you helped me a lot
i successfully reset the board and its working now but i still don't understand why this happen in first place
Thank you very much