A U.S. soldier charged with desertion will let a judge decide his fate.

FOX's Lisa Brady reports:

Army Sgt. Bowe Bergdahl famously held for five years by the Taliban, is scheduled to stand trial in October, accused of endangering fellow soldiers by deserting his post in Afghanistan in 2009.

Now he's chosen to have the judge hear his court martial, instead of a military jury, filing the necessary paperwork last week.

The defense had questioned whether a fair jury trial was possible after negative comments by President Trump, who called Bergdahl a traitor during his presidential campaign.

Bergdahl has said he wanted to call attention to leadership issues by leaving his post. The Taliban ultimately released him in a controversial prisoner swap with the Obama administration for five Guantanamo Bay detainees.

Lisa Brady, FOX News.