Issue #892 fixed
This commit is contained in:
@@ -3891,11 +3891,7 @@ void menuModelLimits(uint8_t event)
|
|||||||
int8_t limit;
|
int8_t limit;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PPM_CENTER_ADJUSTABLE)
|
|
||||||
limit = ((g_model.extendedLimits && !limitAddress(k)->ppmCenter) ? 125 : 100);
|
|
||||||
#else
|
|
||||||
limit = (g_model.extendedLimits ? 125 : 100);
|
limit = (g_model.extendedLimits ? 125 : 100);
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(PCBTARANIS)
|
#if defined(PCBTARANIS)
|
||||||
putsChn(0, y, k+1, (sub==k && m_posHorz < 0) ? INVERS : 0);
|
putsChn(0, y, k+1, (sub==k && m_posHorz < 0) ? INVERS : 0);
|
||||||
@@ -3994,8 +3990,7 @@ void menuModelLimits(uint8_t event)
|
|||||||
#if defined(PPM_CENTER_ADJUSTABLE)
|
#if defined(PPM_CENTER_ADJUSTABLE)
|
||||||
case ITEM_LIMITS_PPM_CENTER:
|
case ITEM_LIMITS_PPM_CENTER:
|
||||||
lcd_outdezAtt(LIMITS_PPM_CENTER_POS, y, PPM_CENTER+ld->ppmCenter, attr);
|
lcd_outdezAtt(LIMITS_PPM_CENTER_POS, y, PPM_CENTER+ld->ppmCenter, attr);
|
||||||
#pragma message("could be less restrictive!")
|
if (active) {
|
||||||
if (active && ld->max <= 0 && ld->min >= 0) {
|
|
||||||
CHECK_INCDEC_MODELVAR(event, ld->ppmCenter, -125, +125);
|
CHECK_INCDEC_MODELVAR(event, ld->ppmCenter, -125, +125);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user