1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 09:15:38 +03:00

[ARM boards] Automatic initialization of trainer parameters with non 0

values
This commit is contained in:
Bertrand Songis 2015-03-14 10:27:49 +01:00
parent 74779cc525
commit 2cb536469f

View file

@ -294,6 +294,14 @@ void generalDefault()
g_eeGeneral.backgroundVolume = 1;
#endif
#if defined(CPUARM)
for (int i=0; i<NUM_STICKS; ++i) {
g_eeGeneral.trainer.mix[i].mode = 2;
g_eeGeneral.trainer.mix[i].srcChn = channel_order(i+1) - 1;
g_eeGeneral.trainer.mix[i].studWeight = 100;
}
#endif
g_eeGeneral.chkSum = 0xFFFF;
}