DAYTONA BEACH, Fla. — NASCAR declined on Wednesday to penalize the 31 cars that failed inspection in the Sprint Cup and Nationwide Series at Daytona.

NASCAR confiscated the teams’ roof flaps, which are designed to keep cars on the ground during spins and wrecks at high speeds, for further inspection.

Thirty-one cars, including 16 in the Sprint Cup Series, failed inspection before Thursday’s practices at Daytona International Speedway.

“Based upon our inspection and subsequent review, it was our determination that the functionality and safety aspects of the roof flaps were not compromised and the on track competition would not be impacted,” NASCAR vice president of competition Robin Pemberton said. “Moving forward we will work with the roof flap manufacturer and the race teams to evaluate and optimize the associated installation hardware, review the process in its totality and communicate in a timely manner to the garage area any revisions that we determine need to be made.”

The roof-flap spacers had been illegally machined down to reduce weight.

NASCAR inspectors made those Cup teams install new, unaltered roof flaps before drivers were allowed on the track for the first of two practices.

Inspectors then went to the Nationwide garage and found similar issues on 15 cars.

The Cup cars involved included all three Joe Gibbs Racing entries (Kyle Busch, Denny Hamlin and Matt Kenseth), all three Roush Fenway Racing entries (Greg Biffle, Carl Edwards and Ricky Stenhouse Jr.), all three Michael Waltrip Racing entries (Clint Bowyer, Martin Truex Jr. and Michael Waltrip) and both Roger Penske Racing entries (Joey Logano and defending series champion Brad Keselowski). Cars driven by Jamie McMurray, Trevor Bayne, Casey Mears, Marcos Ambrose and Aric Almirola also failed inspection.

Nationwide drivers busted include Bayne, Brian Vickers, Reed Sorenson and Travis Pastrana.

Ambrose to run Mid-Ohio Nationwide race for Petty

CHARLOTTE, N.C. — Richard Petty Motorsports will run Marcos Ambrose in the Nationwide Series race at Mid-Ohio next month.

Ambrose will drive the No. 9 Stanley Ford in a two-car effort for RPM. Michael Annett will drive the No. 43 Ford.

Ambrose will also be competing in the Sprint Cup race at Michigan that same weekend.

Mid-Ohio will be Ambrose’s 76th career Nationwide Series start. He is a four-time winner in the series, all on road course circuits.

AJ Allmendiner to run for Shank at Indianapolis

CHARLOTTE, N.C. — AJ Allmendinger is returning to Indianapolis Motor Speedway — but in a Grand-AM car for longtime friend Michael Shank.

Allmendinger will race in the Brickyard Grand Prix on July 26 in the No. 6 Michael Shank Racing Ford-Riley. He’ll co-drive with Gustavo Yacaman.

Allmendinger led laps earlier this year in the Indianapolis 500 and might have had a chance to win the race if his seat belt had not come undone, forcing him to make an unscheduled pit stop. He wound up seventh.

Allmendinger has been racing for Shank since 2006, when he was part of the Rolex 24 At Daytona team.

He combined with Justin Wilson, John Pew and Ozz Negri in 2012.