A former Michigan corrections officer accused of having sex with inmates has pleaded guilty to one charge.