101,9 → 101,13 |
if(PINB & (1<<PINB0)) |
{ |
if(PINB & (1<<PINB1)) BoardRelease = 13; |
else BoardRelease = 11; |
else BoardRelease = 11; // 12 is the same hardware |
} |
else BoardRelease = 10; |
else |
{ |
if(PINB & (1<<PINB1)) BoardRelease = 20; // |
else BoardRelease = 10; |
} |
|
// set LED ports as output |
DDRB |= (1<<DDB1)|(1<<DDB0); |
149,16 → 153,10 |
MK3MAG_Init(); |
#endif |
|
|
// enable interrupts global |
sei(); |
|
VersionInfo.Major = VERSION_MAJOR; |
VersionInfo.Minor = VERSION_MINOR; |
VersionInfo.PCCompatible = VERSION_COMPATIBLE; |
VersionInfo.Hardware = 1; // Flight Control |
|
printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d%c ",BoardRelease/10,BoardRelease%10, VERSION_MAJOR, VERSION_MINOR,VERSION_INDEX + 'a'); |
printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d%c ",BoardRelease/10,BoardRelease%10, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH + 'a'); |
printf("\n\r=============================="); |
GRN_ON; |
|
249,8 → 247,6 |
if(PcAccess) PcAccess--; |
else |
{ |
DubWiseKeys[0] = 0; |
DubWiseKeys[1] = 0; |
ExternControl.Config = 0; |
ExternStickNick= 0; |
ExternStickRoll = 0; |