Fix calls to AP_HAL::Scheduler::register_timer_process

This commit is contained in:
Pat Hickey 2012-10-26 18:08:41 -07:00 committed by Andrew Tridgell
parent bae7e4b88e
commit 668caa4a2e
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ void AP_ADC_ADS7844::Init()
_ch6_last_sample_time_micros = hal.scheduler->micros();
hal.scheduler->resume_timer_procs();
hal.scheduler->register_timer_process( AP_ADC_ADS7844::read, 1, 0);
hal.scheduler->register_timer_process( AP_ADC_ADS7844::read );
}

View File

@ -144,7 +144,7 @@ bool AP_Baro_MS5611::init()
_d1_count = 0;
_d2_count = 0;
hal.scheduler->register_timer_process( AP_Baro_MS5611::_update, 1, 0);
hal.scheduler->register_timer_process( AP_Baro_MS5611::_update );
hal.scheduler->resume_timer_procs();
// wait for at least one value to be read