340 idles at 1500 won't stay running in gear
Get yourself a can of Ether and spray around the bottom of your intake manifold and at the base of the carb. If your engine idle changes then that is where your problem is.
Print