adc.Init() needs timer_scheduler

This commit is contained in:
Andrew Tridgell 2011-11-13 16:06:40 +11:00 committed by Pat Hickey
parent 23ccce23d0
commit 8e9851c217

View File

@ -209,7 +209,7 @@ static void init_ardupilot()
#if CONFIG_ADC == ENABLED
// begin filtering the ADC Gyros
adc.filter_result = true;
adc.Init(); // APM ADC library initialization
adc.Init(&timer_scheduler); // APM ADC library initialization
#endif // CONFIG_ADC
#if CONFIG_APM_HARDWARE == APM_HARDWARE_PURPLE