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

So, if 100 == HIGH? Reply #11?

In light of your reply #12, what are you actually trying to do with 'fanspeed' there?