A longtime Baltimore City police officer admitted Thursday to driving drunk in York County with his two children in his car.

Shawn Byron Johnson, 41, of West York, pleaded guilty to first-offense DUI and two counts of child endangerment as part of a negotiated plea agreement, according to court records. All three charges are first-degree misdemeanors.

He remains free pending his Nov. 26 sentencing hearing.

Defense attorney Chris Ferro said the proposed agreed-upon sentence — which will have to be approved by a judge — is for two years of probation, with the first three days on house arrest. The agreement also calls for Johnson to wear an alcohol-monitoring ankle cuff for 10 days.

He will also have to pay a $2,000 fine and perform 100 hours of community service, according to senior deputy prosecutor Jared Mellott.

Mellott also confirmed that, generally speaking, convictions for first-degree misdemeanors and child-related offenses can end a police officer's career.

Johnson's sentencing hearing was delayed until late November "in order to give us the opportunity to assess the impact of his plea on his career," Ferro said.

Ferro said his client has been a Baltimore City officer for 19-1/2 years. Johnson was hired in 1995 and remains on suspension, a Baltimore City Police spokesman said.

The background: Johnson crashed his Honda Accord into a parked car in the 1400 block of Detwiler Drive in Manchester Township about 9:30 p.m. May 24, Northern York County Regional Police said.

Johnson, who was swaying and smelled of alcohol, pulled out his wallet and showed the officer his Baltimore City Police identification card, documents state.

The officer told Johnson to walk to the rear of the car for a field sobriety test, but Johnson said, "Just take me in. I'm over (the limit)," documents state.

Johnson had a blood-alcohol level of 0.276, documents state. In Pennsylvania, an adult is driving drunk at 0.08 percent.

Kids in car: Officers found Johnson's two children, who were 7 and 10 at the time, unhurt in the back seat of the car, police said.

Johnson's ex-wife arrived on the scene to pick up the children and told officers Johnson drank three small mixed drinks during dinner, then took their children and headed home.

According to Ferro, Johnson's high blood-alcohol level can be attributed to the fact he previously underwent gastric bypass surgery.

Ferro said there is a significant amount of medical research that shows gastric bypass surgery can enhance a person's blood-alcohol level.

Mellott said Johnson's alcohol level equated to his having roughly nine alcoholic drinks, although that equation varies depending on factors including weight and whether the person drank on an empty stomach.

— Reach Liz Evans Scolforo at levans@yorkdispatch.com.