enable/disable switch learning mode