Vibrating too long

Hello! For some reason, when I add the vibrate functions, they vibrate longer than expected on my hardware (ElecFreaks retro console). Can anyone fix the error? Thanks