Void function: a function-definition is not allowed here before '{' token

I tried 100 too. Still doesn't work though.

Edit: Replacing with 100, the 25 - 100% doesn't turn motor off. But 25 - 100% buttons are able to turn on the motor, which I don't want.