Stop setting the squawk code in the cockpit automatically

Should be an option in the settings