Label "MAX" for mixers source changed to "HALF". Idea pulled from er9x.

This commit is contained in:
bsongis
2012-03-02 08:14:58 +00:00
parent 30cd6bf15d
commit c03950c0fa
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -1122,7 +1122,7 @@ void perOut(int16_t *chanOut, uint8_t phase)
if(((bpanaCenter ^ anaCenter) & anaCenter)) AUDIO_POT_STICK_MIDDLE();
bpanaCenter = anaCenter;
anas[MIX_MAX-1] = RESX; // MAX
anas[MIX_HALF-1] = RESX; // HALF
anas[MIX_FULL-1] = RESX; // FULL
#ifdef HELI
@@ -1228,7 +1228,7 @@ void perOut(int16_t *chanOut, uint8_t phase)
if (!getSwitch(md->swtch,1)) { // switch on? if no switch selected => on
swTog = swOn[i];
swOn[i] = false;
if(md->srcRaw!=MIX_MAX && md->srcRaw!=MIX_FULL) continue;// if not MAX or FULL - next loop
if(md->srcRaw!=MIX_HALF && md->srcRaw!=MIX_FULL) continue;// if not MAX or FULL - next loop
if(md->mltpx==MLTPX_REP) continue; // if switch is off and REPLACE then off
v = (md->srcRaw == MIX_FULL ? -RESX : 0); // switch is off and it is either MAX=0 or FULL=-512
}