Subversion Repositories FlightCtrl

Rev

Rev 942 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 942 Rev 957
Line 146... Line 146...
146
                // set speaker port to low
146
                // set speaker port to low
147
                if(BoardRelease == 10) PORTD &= ~(1<<PORTD2);// Speaker at PD2
147
                if(BoardRelease == 10) PORTD &= ~(1<<PORTD2);// Speaker at PD2
148
                else                   PORTC &= ~(1<<PORTC7);// Speaker at PC7
148
                else                   PORTC &= ~(1<<PORTC7);// Speaker at PC7
149
        }
149
        }
Line -... Line 150...
-
 
150
 
150
 
151
        #ifndef USE_NAVICTRL
151
        // update compass value if this option is enabled in the settings
152
        // update compass value if this option is enabled in the settings
152
        if(ParamSet.GlobalConfig & CFG_COMPASS_ACTIVE)
153
        if(ParamSet.GlobalConfig & (CFG_COMPASS_ACTIVE|CFG_GPS_ACTIVE))
153
        {
154
        {
154
        #ifdef USE_KILLAGREG
155
        #ifdef USE_KILLAGREG
155
                MM3_Update(); // read out mm3 board
156
                MM3_Update(); // read out mm3 board
156
        #endif
157
        #endif
157
        #ifdef USE_MK3MAG
158
        #ifdef USE_MK3MAG
158
                MK3MAG_Update(); // read out mk3mag pwm
159
                MK3MAG_Update(); // read out mk3mag pwm
159
        #endif
160
        #endif
-
 
161
        }
160
        }
162
        #endif
Line 161... Line 163...
161
}
163
}