A woman caught by police smoking marijuana in her car with her 6-week-old in the backseat said she was on her way to a drug deal in Davenport, police said.

Cassandra L. Davis, 19, of 6536 Woodland Court, Davenport, was arrested Wednesday night on possession of a controlled substance and child endangerment charges.

Because the infant was exposed to a controlled substance, Davis’ child endangerment charge is a Class D felony that is punishable in Iowa by up to five years in prison. Davis was smoking marijuana with the windows rolled up, according to an arrest affidavit.

Police spotted her smoking a pipe as she drove past an unmarked squad car while heading northbound in the 5200 block of Brady Street at 9:26 p.m. Wednesday, the affidavit states.

When she was pulled over, officers found two baggies of marijuana weighing about 1.4 grams, the affidavit states.

Police said Joshua M. Gosselin, 18, of 616 E. 6th St., Davenport, was sitting in the backseat and had marijuana weighing 13 grams along with alprazolam and hydrocodone, the affidavit states.

His cellphone messages showed several drug transactions, according to his arrest affidavit.

Gosselin was in jail Thursday charged with felony possession with intent to deliver.