aboutsummaryrefslogtreecommitdiff
path: root/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2010-02-13 03:21:28 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2010-02-13 03:21:28 +0000
commite6570ba1daf42bb942d10a2724b296488d61e706 (patch)
treefa9aaab7450e9d104574b729cf41f1b4af40aac9 /Projects/AVRISP-MKII/Lib/V2ProtocolParams.c
parent7329bc9ff9bb5a2c76f1a9cf112df8b00ebe5eb6 (diff)
Add NO_VTARGET_DETECT compile time option to the AVRISP-MKII clone project, to disable VTARGET detection on AVR models with an on-chip ADC.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1128 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/V2ProtocolParams.c')
-rw-r--r--Projects/AVRISP-MKII/Lib/V2ProtocolParams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c b/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c
index 00788515..a4709f8f 100644
--- a/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c
+++ b/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c
@@ -97,7 +97,7 @@ void V2Params_LoadNonVolatileParamValues(void)
*/
void V2Params_UpdateParamValues(void)
{
- #if defined(ADC)
+ #if (defined(ADC) && !defined(NO_VTARGET_DETECT))
/* Update VTARGET parameter with the latest ADC conversion of VTARGET on supported AVR models */
V2Params_GetParamFromTable(PARAM_VTARGET)->ParamValue = ((5 * 10 * ADC_GetResult()) / 1024);
#endif