Two men have been convicted on drug charges in Buchanan County, where authorities discovered them manufacturing methamphetamine after receiving an accidental emergency cellphone call.

According to a news release, sheriff's deputies found Cody Davis making meth in an outbuilding building at a rural Brandon residence on Aug. 2, 2016. They were sent to 3030 Daniel Ave. after receiving a 911 hang-up call from a cell phone near that location.

Upon arrival, authorities learned that Davis' guest, Daniel O'Hara, mistakenly dialed 911 from the cellphone in his pocket. When O'Hara discovered the call, he hung up and removed the phone's battery to prevent a call back, the news release said.

Deputies arrested O'Hara on an active warrant from Wisconsin, and for possession of methamphetamine and zopicione. He was sentenced to a five-year prison term on Oct. 4, 2016, after being convicted of the possession charge.

Prosecutors later charged Davis with manufacturing methamphetamine and possession of meth precursors. On Tuesday, he was sentenced to 20 years in prison on the charges.