56,11 → 56,9 |
#include "controlMixer.h" |
|
#include "timer0.h" |
// for debugging! |
#include "uart0.h" |
#include "output.h" |
|
#ifdef USE_DIRECT_GPS |
#ifdef USE_MK3MAG |
#include "mk3mag.h" |
#endif |
|
183,12 → 181,12 |
PORTC &= ~(1 << PORTC7);// Speaker at PC7 |
} |
|
#ifdef USE_DIRECT_GPS |
#ifdef USE_MK3MAG |
// update compass value if this option is enabled in the settings |
if (staticParams.bitConfig & (CFG_COMPASS_ACTIVE | CFG_GPS_ACTIVE)) { |
if (staticParams.bitConfig & (CFG_COMPASS_ENABLED | CFG_GPS_ENABLED)) { |
MK3MAG_periodicTask(); // read out mk3mag pwm |
} |
#endif |
} |
} |
|
// ----------------------------------------------------------------------- |