Update gcode.c

home_select defined out of scope. Moved it outside the switch 
so the rest of the switch can see it properly.