A York man has been sentenced to seven to nine years in prison for shooting at a York County sheriff's deputy in August.
Judge James Stecker sentenced Max McCall on several charges Tuesday.
McCall was ordered to serve two to four years for attempted assault of an officer and one to two years for attempting to flee arrest. Those terms are to be served at the same time and then followed by five more years for using a firearm to commit a felony.
McCall pleaded no contest in November to the charges in an agreement with prosecutors.
According to York County officials, the deputy was responding to a domestic violence report on Aug. 11 when he spotted McCall in his vehicle and ended up in a short pursuit that ended when McCall's vehicle went into a ditch.
Authorities say McCall then fired twice at the deputy but missed. The deputy shot back, hitting McCall twice and wounding him.