Remove throttle reverse warning for AVR too
This commit is contained in:
@@ -20,16 +20,6 @@
|
|||||||
|
|
||||||
#include "opentx.h"
|
#include "opentx.h"
|
||||||
|
|
||||||
bool isThrottleOutput(uint8_t ch)
|
|
||||||
{
|
|
||||||
for (uint8_t i=0; i<MAX_MIXERS; i++) {
|
|
||||||
MixData *mix = mixAddress(i);
|
|
||||||
if (mix->destCh==ch && mix->srcRaw==MIXSRC_Thr)
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum MenuModelOutputsItems {
|
enum MenuModelOutputsItems {
|
||||||
ITEM_OUTPUTS_OFFSET,
|
ITEM_OUTPUTS_OFFSET,
|
||||||
ITEM_OUTPUTS_MIN,
|
ITEM_OUTPUTS_MIN,
|
||||||
@@ -179,20 +169,13 @@ void menuModelLimits(event_t event)
|
|||||||
|
|
||||||
case ITEM_OUTPUTS_DIRECTION:
|
case ITEM_OUTPUTS_DIRECTION:
|
||||||
{
|
{
|
||||||
uint8_t revert = ld->revert;
|
|
||||||
#if defined(PPM_CENTER_ADJUSTABLE)
|
#if defined(PPM_CENTER_ADJUSTABLE)
|
||||||
lcdDrawChar(LIMITS_REVERT_POS, y, revert ? 127 : 126, attr);
|
lcdDrawChar(LIMITS_REVERT_POS, y, ld->revert ? 127 : 126, attr);
|
||||||
#else
|
#else
|
||||||
lcdDrawTextAtIndex(LIMITS_REVERT_POS, y, STR_MMMINV, revert, attr);
|
lcdDrawTextAtIndex(LIMITS_REVERT_POS, y, STR_MMMINV, ld->revert, attr);
|
||||||
#endif
|
#endif
|
||||||
if (active) {
|
if (active) {
|
||||||
uint8_t revert_new = checkIncDecModel(event, revert, 0, 1);
|
CHECK_INCDEC_MODELVAR_ZERO(event, ld->revert, 1);
|
||||||
if (checkIncDec_Ret && isThrottleOutput(k)) {
|
|
||||||
POPUP_CONFIRMATION(STR_INVERT_THR);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
ld->revert = revert_new;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user