mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 14:25:11 +03:00
Cleaned up comments
This commit is contained in:
parent
753c5e3119
commit
28fad3a306
1 changed files with 7 additions and 10 deletions
|
@ -5164,8 +5164,8 @@ enum menuModelTelemetryItems {
|
||||||
ITEM_TELEMETRY_USR_PROTO,
|
ITEM_TELEMETRY_USR_PROTO,
|
||||||
#endif
|
#endif
|
||||||
ITEM_TELEMETRY_USR_BLADES,
|
ITEM_TELEMETRY_USR_BLADES,
|
||||||
ITEM_TELEMETRY_USR_SPUR_GEAR, // T.Foley
|
ITEM_TELEMETRY_USR_SPUR_GEAR,
|
||||||
ITEM_TELEMETRY_USR_PINION_GEAR, // T.Foley
|
ITEM_TELEMETRY_USR_PINION_GEAR,
|
||||||
#endif
|
#endif
|
||||||
ITEM_TELEMETRY_USR_VOLTAGE_SOURCE,
|
ITEM_TELEMETRY_USR_VOLTAGE_SOURCE,
|
||||||
ITEM_TELEMETRY_USR_CURRENT_SOURCE,
|
ITEM_TELEMETRY_USR_CURRENT_SOURCE,
|
||||||
|
@ -5202,8 +5202,7 @@ enum menuModelTelemetryItems {
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(PCBTARANIS)
|
#if defined(PCBTARANIS)
|
||||||
//#define USRDATA_LINES (uint8_t)-1, 0,
|
#define USRDATA_LINES (uint8_t)-1, 0, 0, 0,
|
||||||
#define USRDATA_LINES (uint8_t)-1, 0, 0, 0, // T.Foley - Add room for two new gearing options
|
|
||||||
#elif defined(FRSKY_HUB) || defined(WS_HOW_HIGH)
|
#elif defined(FRSKY_HUB) || defined(WS_HOW_HIGH)
|
||||||
#define USRDATA_LINES (uint8_t)-1, 0, 0,
|
#define USRDATA_LINES (uint8_t)-1, 0, 0,
|
||||||
#else
|
#else
|
||||||
|
@ -5406,20 +5405,18 @@ void menuModelTelemetry(uint8_t event)
|
||||||
|
|
||||||
case ITEM_TELEMETRY_USR_BLADES:
|
case ITEM_TELEMETRY_USR_BLADES:
|
||||||
lcd_putsLeft(y, STR_BLADES);
|
lcd_putsLeft(y, STR_BLADES);
|
||||||
//lcd_outdezAtt(TELEM_COL2+FWNUM, y, 2+g_model.frsky.blades, attr);
|
lcd_outdezAtt(TELEM_COL2, y, 1+g_model.frsky.blades, LEFT|attr);
|
||||||
lcd_outdezAtt(TELEM_COL2, y, 1+g_model.frsky.blades, LEFT|attr); // T.Foley
|
if (attr) CHECK_INCDEC_MODELVAR_ZERO(event, g_model.frsky.blades, 254);
|
||||||
//if (attr) CHECK_INCDEC_MODELVAR_ZERO(event, g_model.frsky.blades, 3);
|
|
||||||
if (attr) CHECK_INCDEC_MODELVAR_ZERO(event, g_model.frsky.blades, 254); // T.Foley
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ITEM_TELEMETRY_USR_SPUR_GEAR: // T.Foley
|
case ITEM_TELEMETRY_USR_SPUR_GEAR:
|
||||||
lcd_putsLeft(y, STR_SPURGEAR);
|
lcd_putsLeft(y, STR_SPURGEAR);
|
||||||
lcd_outdezAtt(TELEM_COL2, y, 1+g_model.frsky.spur_gear, LEFT|attr);
|
lcd_outdezAtt(TELEM_COL2, y, 1+g_model.frsky.spur_gear, LEFT|attr);
|
||||||
// Spur gear must be greater than or equal to pinion to prevent floating point error
|
// Spur gear must be greater than or equal to pinion to prevent floating point error
|
||||||
if (attr) CHECK_INCDEC_MODELVAR(event, g_model.frsky.spur_gear, g_model.frsky.pinion_gear, 254);
|
if (attr) CHECK_INCDEC_MODELVAR(event, g_model.frsky.spur_gear, g_model.frsky.pinion_gear, 254);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ITEM_TELEMETRY_USR_PINION_GEAR: // T.Foley
|
case ITEM_TELEMETRY_USR_PINION_GEAR:
|
||||||
lcd_putsLeft(y, STR_PINIONGEAR);
|
lcd_putsLeft(y, STR_PINIONGEAR);
|
||||||
lcd_outdezAtt(TELEM_COL2, y, 1+g_model.frsky.pinion_gear, LEFT|attr);
|
lcd_outdezAtt(TELEM_COL2, y, 1+g_model.frsky.pinion_gear, LEFT|attr);
|
||||||
// Pinion gear ,ust be less than or equal to spur gear to prevent floating point error
|
// Pinion gear ,ust be less than or equal to spur gear to prevent floating point error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue