title: For loop is not incrementing
body: <p>I have been working on this code class today and assure  you I have gone through it a number of times. For some reason whenever I set my breakpoints to determine the value of "channelsel" all I get is "0". I never get 1,2,3 or 4 (my MAXCHANNELS is 5). </p>
  
  <p>I'm using: P18F45K22 microcontroller, and mplab c18. </p>
  
  <p>Please take a look at the following code, and thank you in advance</p>
  
  <pre><code>int channelsel = 0;
  for (channelsel = 0; channelsel &lt; MAXCHANNELS; channelsel++)
      {   
      switch(channelsel)
         {
          case 0:
              SetChanADC(ADC_CH0);
              break;
          case 1:
              SetChanADC(ADC_CH1);
              break;
          case 2: 
              SetChanADC(ADC_CH2);
              break;
          case 3:
              SetChanADC(ADC_CH3);
              break;
          case 4: 
              SetChanADC(ADC_CH4);
              break;
          default:
              SetChanADC(ADC_CH0);
              break;
          }   
      ConvertADC();
      while(BusyADC() == TRUE) Delay1TCY();       
      sampledValue = ReadADC();
      setCurrentTemperatureForChannel(channelsel, sampledValue);
      sprintf (buf, "current Temp of channel %i is %x \n\r", channelsel, sampledValue);
      puts1USART(buf);
      Delay10KTCYx(10);
  }
  </code></pre>