Browse Source

fix 'prout' module

fertito
Marc 13 years ago
parent
commit
fbc291a63c
  1. 9
      driver/timer.c
  2. 3
      logic/prout.c

9
driver/timer.c

@ -61,7 +61,9 @@
#include "simpliciti.h"
#include "acceleration.h"
#ifdef CONFIG_PROUT
#include "prout.h"
#endif
#ifdef CONFIG_VARIO
#include "vario.h"
@ -539,9 +541,6 @@ __interrupt void TIMER0_A1_5_ISR(void)
update_stopwatch_timer();
#ifdef CONFIG_EGGTIMER
update_eggtimer_timer();
#endif
#ifdef CONFIG_PROUT
update_prout_timer();
#endif
// Enable timer interrupt
TA0CCTL2 |= CCIE;
@ -550,10 +549,6 @@ __interrupt void TIMER0_A1_5_ISR(void)
#ifdef CONFIG_EGGTIMER
eggtimer_tick();
#endif
#ifdef CONFIG_PROUT
prout_tick();
#endif
break;
// Timer0_A3 Configurable periodic IRQ (used by button_repeat and buzzer)

3
logic/prout.c

@ -52,6 +52,7 @@
#include "project.h"
#ifdef CONFIG_PROUT
// driver
#include "altitude.h"
@ -152,3 +153,5 @@ void reset_prout(void)
sprouttimer.pos = 0;
sprouttimer.state = PROUT_STOP;
}
#endif /* CONFIG_PROUT */

Loading…
Cancel
Save