From d416013bd86e0c4e11392c8b42cfef267579e66e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 13 Dec 2011 18:28:50 +1100 Subject: [PATCH] fixed a hang on 2nd run of IMU test we should not try to initialise the ISR handlers twice --- ArduPlane/test.pde | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ArduPlane/test.pde b/ArduPlane/test.pde index 69b8950965..5e34820376 100644 --- a/ArduPlane/test.pde +++ b/ArduPlane/test.pde @@ -451,8 +451,6 @@ static int8_t test_adc(uint8_t argc, const Menu::arg *argv) { print_hit_enter(); - isr_registry.init(); - timer_scheduler.init( &isr_registry ); adc.Init(&timer_scheduler); delay(1000); Serial.printf_P(PSTR("ADC\n")); @@ -503,8 +501,6 @@ static int8_t test_imu(uint8_t argc, const Menu::arg *argv) { //Serial.printf_P(PSTR("Calibrating.")); - isr_registry.init(); - timer_scheduler.init( &isr_registry ); imu.init(IMU::COLD_START, delay, flash_leds, &timer_scheduler); print_hit_enter(); @@ -566,8 +562,6 @@ test_mag(uint8_t argc, const Menu::arg *argv) report_compass(); // we need the DCM initialised for this test - isr_registry.init(); - timer_scheduler.init( &isr_registry ); imu.init(IMU::COLD_START, delay, flash_leds, &timer_scheduler); int counter = 0;