Im going through the "project from scratch" from SimpleLink Academy - 3.40.02.01 in the resource explorer, and have an syntax error/unknown identifier pop up in the task testing window in sensorcontroller studio. i am fairly new to the program but i have no idea what is wrong.
here is the code
// Enable the ADC adcEnableSync(ADC_REF_FIXED, ADC_SAMPLE_TIME_2P7_US, ADC_TRIGGER_MANUAL); // Sample the analog sensor adcGenManualTrigger(); adcReadFifo(output.adcValue); // Disable the ADC adcDisable(); U16 oldState = state.high; if (input.adcValue > cfg.threshold) { state.high = 1; // High input - > High state this is line 13 gpioClearOutput(AUXIO_O_GREEN_LED); } else { state.high = 0; // Low input -> Low state this is line 16 gpioSetOutput(AUXIO_O_GREEN_LED); } if (oldState != state.high) { // Signal the application processor. fwGenAlertInterrupt(); } // Schedule the next execution fwScheduleTask(1);
scs says that "state.high =1;" and " state.high =0; " lines are wrong. I am using Sensor controller studio version 2.6.0.132