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:
parent
74779cc525
commit
2cb536469f
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue