Fixed initialization bug when switching AIN pins