128x64 GVAR support update (#5675)
* POC for usability feedbacks * Working version for tests * Remove tests leftover * Make Travis happy ? * Gvar popup handling
This commit is contained in:
@@ -634,9 +634,16 @@ void menuMainView(event_t event)
|
||||
warningText = STR_GLOBAL_VAR;
|
||||
drawMessageBox();
|
||||
lcdDrawSizedText(16, 5*FH, g_model.gvars[gvarLastChanged].name, LEN_GVAR_NAME, ZCHAR);
|
||||
lcdDrawText(16+7*FW, 5*FH, PSTR("[\010]"), BOLD);
|
||||
|
||||
lcdDrawNumber(16+7*FW+4*FW+FW/2, 5*FH, GVAR_VALUE(gvarLastChanged, getGVarFlightMode(mixerCurrentFlightMode, gvarLastChanged)), BOLD);
|
||||
lcdDrawText(16+6*FW, 5*FH, PSTR("["), BOLD);
|
||||
#if defined(CPUARM)
|
||||
drawGVarValue(lcdLastRightPos, 5*FH, gvarLastChanged, GVAR_VALUE(gvarLastChanged, getGVarFlightMode(mixerCurrentFlightMode, gvarLastChanged)), LEFT|BOLD);
|
||||
if (g_model.gvars[gvarLastChanged].unit) {
|
||||
lcdDrawText(lcdLastRightPos, 5*FH, "%", BOLD);
|
||||
}
|
||||
#else
|
||||
lcdDrawNumber(lcdLastRightPos, 5*FH, GVAR_VALUE(gvarLastChanged, getGVarFlightMode(mixerCurrentFlightMode, gvarLastChanged)), BOLD);
|
||||
#endif
|
||||
lcdDrawText(lcdLastRightPos, 5*FH, PSTR("]"), BOLD);
|
||||
warningText = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user