Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   ADC code errors (http://www.chiefdelphi.com/forums/showthread.php?t=62269)

epl692 22-01-2008 12:05

ADC code errors
 
I have been trying to compile the code for this year (gyro) and have been running into a strange error during the compile that says that the ADC voltage variables are not set, could anyone help me make the correct modifications to ether our build environment or the code itself to get it to compile?

Mark McLeod 22-01-2008 12:52

Re: ADC code errors
 
Do you mean like:
ADC_VREFPLUS_VDD and ADC_VREFMINUS_VSS ?

If that's what you're talking about then there are two solutions to this problem with the student version 3.15 of the compiler:

-- Fix the 3.15 version of the adc.h system file. There is a missing "#endif" at line 536. It does a series of PIC architecture checks and they forgot to close one conditional #if, thereby wiping out all the subsequent statements.

or

-- You can comment out the code that uses those macros.

epl692 22-01-2008 12:56

Re: ADC code errors
 
yes, that was the error, thank you, il get to updating our code when next i get a chance to.


All times are GMT -5. The time now is 23:12.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi