Engine ignition control for transmission change