The American Civil Liberties Union says a Kansas City suburb has agreed to stop ticketing drivers who flash their headlights at oncoming traffic to warn that a speed trap is ahead.

The ACLU of Missouri said in a news release that a lawsuit against the 13,000-resident town of Grain Valley was dismissed Thursday. The federal suit was filed on behalf of Jerry L. Jarman Jr., who was ticketed in August for violating a city code that bars interference with radar and other speed-checking devices.

The ACLU of Missouri alleges the Kansas man was "engaged in expressive conduct" that is protected by the First Amendment right to free speech.

Interim Grain Valley city administrator Ryan Hunt says the city changed its ordinance last month and agreed to pay Jarman $5,560.