1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 16:55:20 +03:00

Failsafe screen issue

This commit is contained in:
Bertrand Songis 2019-05-06 10:21:10 +02:00
parent 52e5e1aa25
commit a27c33ae0d

View file

@ -22,9 +22,9 @@
extern uint8_t g_moduleIdx;
void onFailsafeMenu(const char *result)
void onFailsafeMenu(const char * result)
{
uint8_t sub = menuVerticalPosition + HEADER_LINE;
uint8_t sub = menuVerticalPosition;
int16_t & failsafe = g_model.failsafeChannels[sub];
int32_t channelValue = channelOutputs[sub];
@ -45,7 +45,7 @@ void onFailsafeMenu(const char *result)
void menuModelFailsafe(event_t event)
{
uint8_t sub = menuVerticalPosition + HEADER_LINE;
uint8_t sub = menuVerticalPosition;
const coord_t x = 1;
const int lim = (g_model.extendedLimits ? (512 * LIMIT_EXT_PERCENT / 100) : 512) * 2;