I have some code that looks like this
// Get the photo transistor ADC input value
// will stop here
adcSampleAllChannels(); // Sample all ADC Channels
// *** but will not stop here
photoVal = dwAdcSingleSampleArray[SALU_ADC_CHAN_PHOTO];
photoAvg = (photoAvg*10 + photoVal)/11;
if (photoVal > photoAvg + 50){
photoSpike = true;
photoSpikeTime = i;
// +++
// but will stop here
Task_sleep(intervalX * 1000 / Clock_tickPeriod);
The problem is that it seems like the compiler is completely ignoring my code!!!
Any attempt to stop on any line of code between *** and +++ is ignored.
Help?