In some IDEs I am given an error for this yet in others it works fine. I would like to know what the problem is and what i can do to fix it.
typedef enum custom_brake
{
BRAKE_COAST = 0,
BRAKE_BRAKE = 1,
BRAKE_HOLD = 2
} TokenType;
void GsetBrakeMode(custom_brake brakeMode){
switch(brakeMode){
case BRAKE_COAST: break;
case BRAKE_BRAKE: break;
case BRAKE_HOLD: break;
}
}
GsetBrakeMode(BRAKE_HOLD);