mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Add Switch BackLight action
This commit is contained in:
1 parent
f31e8c319e
commit
ad3b8b5b9a
13 files changed
+53
-14
No files matched your search
@@ -424,6 +424,7 @@ const t_sidefunction gSubMenu_SIDEFUNCTIONS[] =
|
||||
{"SWITCH\nRX MODE", ACTION_OPT_RXMODE},
|
||||
{"SWITCH\nPTT", ACTION_OPT_PTT},
|
||||
{"SWITCH\nWIDE\nNARROW", ACTION_OPT_WN},
|
||||
{"SWITCH\nBACKLIGHT", ACTION_OPT_BACKLIGHT},
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
+6
-5
@@ -160,11 +160,6 @@ void UI_DisplayStatus()
|
||||
x1 = x;
|
||||
}
|
||||
else if (gWasFKeyPressed) {
|
||||
/*
|
||||
memcpy(line + x, gFontF, sizeof(gFontF));
|
||||
x += sizeof(gFontF);
|
||||
*/
|
||||
|
||||
UI_PrintStringSmallBufferNormal("F", line + x + 1);
|
||||
x += sizeof(gFontKeyLock);
|
||||
|
||||
@@ -174,6 +169,12 @@ void UI_DisplayStatus()
|
||||
}
|
||||
x1 = x;
|
||||
}
|
||||
else if(gBackLight)
|
||||
{
|
||||
memcpy(line + x + 1, gFontLight, sizeof(gFontLight));
|
||||
x += sizeof(gFontLight);
|
||||
x1 = x;
|
||||
}
|
||||
|
||||
{ // battery voltage or percentage
|
||||
char s[8] = "";
|
||||
|
||||
Reference in new issue
Block a user