1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00
This commit is contained in:
bsongis 2015-01-04 17:12:44 +01:00
parent 9e9b0ff77d
commit c50677881f

View file

@ -526,8 +526,14 @@ void evalInputs(uint8_t mode)
vStud *= td->studWeight;
vStud /= 50;
switch (td->mode) {
case 1: v += vStud; break; // add-mode
case 2: v = vStud; break; // subst-mode
case 1:
// add-mode
v = limit<int16_t>(-RESX, v+vStud, RESX);
break;
case 2:
// subst-mode
v = vStud;
break;
}
#if defined(PCBTARANIS)
calibratedStick[ch] = v;