Hi, here is a simple program, I do not see anything wrong with it, but the compiler gives the following error:
Line 86: Endif without a matching IF..THEN
.. If I remove the endif then I do not get an error message, but I need it there, I will have more if then loops.
thanks
Mainloop:
ADCON0.2 = 1 'Start Conversion
ADCIN 0, voltage_selector 'analog pin 1 get the 8 bit result Check the battery voltage
If (voltage_selector >=0) AND (voltage_selector < 205) Then gosub SixVolt
Endif
goto Mainloop
end
Bookmarks