1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 21:05:26 +03:00
This commit is contained in:
bsongis 2014-06-10 18:12:41 +02:00
parent 2ba86d8cb3
commit 296264d8b4

View file

@ -852,11 +852,16 @@ GeneralSettings::GeneralSettings()
calibSpanPos[i] = 0x180;
}
if (IS_TARANIS(GetEepromInterface()->getBoard())) {
BoardEnum board = GetEepromInterface()->getBoard();
if (IS_TARANIS(board)) {
potsType[0] = 1;
potsType[1] = 1;
}
if (IS_ARM(board)) {
speakerVolume = 12;
}
templateSetup = g.profile[g.id()].channelOrder();
stickMode = g.profile[g.id()].defaultMode();
@ -1072,11 +1077,11 @@ void ModelData::clear()
moduleData[0].protocol=PPM;
moduleData[1].protocol=OFF;
}
for (int i=0; i<C9X_MAX_FLIGHT_MODES; i++)
for (int i=0; i<C9X_MAX_FLIGHT_MODES; i++) {
phaseData[i].clear();
}
clearInputs();
clearMixes();
for (int i=0; i<C9X_NUM_CHNOUT; i++)
limitData[i].clear();
for (int i=0; i<NUM_STICKS; i++)
@ -1087,7 +1092,6 @@ void ModelData::clear()
curves[i].clear(5);
for (int i=0; i<2; i++)
timers[i].clear();
swashRingData.clear();
frsky.clear();
}