Martin’s bond was revoked, and he was taken to the detention center Thursday, but Salvatore said his client would likely be taken to a jail in a neighboring county to await sentencing.

The state is asking for a five-year prison sentence with three years suspended, Salvatore said Friday.

In exchange for the plea, nine other charges, including possession with intent to distribute Suboxone, delivery of a controlled dangerous substance to a place of confinement and criminal conspiracy, were dismissed.

Martin was charged in November with delivering drugs to an inmate, according to charging documents. Another inmate and a Hagerstown woman were also charged as a result of the investigation, the documents said.

“Because of medications that were prescribed to him for treatment, he became dependent on it,” Salvatore said.

The Suboxone Martin was charged with bringing into the jail had been prescribed to him, Salvatore said.

“Nevertheless, he’s a correctional officer, and he absolutely, positively should not even have been giving an inmate an aspirin,” Salvatore said.