I'm going to venture a guess that he did indeed desert, came over to the Yankees, and assigned to Camp Morton.
What documentation do you have of his incarceration at Camp Morton and his assignment there?