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.
This commit is contained in:
parent
c6f21fde62
commit
de0ccb3d09
3 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue