mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Fix bug
This commit is contained in:
1 parent
3e299b5079
commit
c46325800d
1 file changed
+5
-5
+5
-5
@@ -369,6 +369,10 @@ static void OnKeyDown(uint8_t key)
|
||||
case KEY_MENU:
|
||||
isPaused = !isPaused;
|
||||
kbd.counter = 0;
|
||||
if(isPaused)
|
||||
{
|
||||
UI_PrintStringSmallBold("PAUSE", 0, 128, 4);
|
||||
}
|
||||
break;
|
||||
case KEY_EXIT:
|
||||
isPaused = false;
|
||||
@@ -376,11 +380,7 @@ static void OnKeyDown(uint8_t key)
|
||||
break;
|
||||
}
|
||||
|
||||
if(isPaused)
|
||||
{
|
||||
UI_PrintStringSmallBold("PAUSE", 0, 128, 4);
|
||||
}
|
||||
else if(wasPaused)
|
||||
if(wasPaused == true && isPaused == false)
|
||||
{
|
||||
// Clear the pause text
|
||||
for(uint8_t i = 0; i < 8; i++)
|
||||
|
||||
Reference in new issue
Block a user