What code were you charged with violating? Much would determine whether the crime you are charged with is a felony and whether your other priors can be used to determine your sentence. As you probably know, a misdemeanor means no more than 1 year in jail, a felony will be much harsher. Good luck.