Engine slowing down while driving
Set out for the store today and less than a mile down the road the engine slowed down while I was holding the pedal at the same place. When I let off the pedal and hit it again the truck sped up. A little further down the road it width same thing, let-off and pumping the pedal got it going again. It did this probably 4 or 5 times in the first couple miles so I turned around to bring it back home.
It feels like I let off the gas but Im holding the pedal steady.
2014 F350 DRW 6.7L 108,000 mi
Checked the OBD codes with my scanner and there were none.
DEF level says it's good
Runs like crap for a few seconds then picks back up.
Picked up a replacement switch at AutoZone and it's plunger was 3/16 longer than the one from the factory and the black wings on the barrel were all bent up. Brake pedal test looks good, lights up and stays off, test drive proved it was working properly now, no slowdowns and even the cruise control held just fine.



