mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 06:39:49 +03:00
Fixed big freq '00' bug and backlight off exit key bug.
This commit is contained in:
@ -264,7 +264,7 @@ void UI_DisplayMain(void)
|
||||
// show the main large frequency digits
|
||||
UI_DisplayFrequency(String, 32, Line, false, false);
|
||||
// show the remaining 2 small frequency digits
|
||||
UI_DisplaySmallDigits(2, String + 7, 113, Line + 1, true);
|
||||
UI_DisplaySmallDigits(2, String + 6, 113, Line + 1, true);
|
||||
#else
|
||||
// show the frequency in the main font
|
||||
sprintf(String, "%03u.%05u", frequency / 100000, frequency % 100000);
|
||||
@ -305,7 +305,7 @@ void UI_DisplayMain(void)
|
||||
// show the main large frequency digits
|
||||
UI_DisplayFrequency(String, 32, Line, false, false);
|
||||
// show the remaining 2 small frequency digits
|
||||
UI_DisplaySmallDigits(2, String + 7, 113, Line + 1, true);
|
||||
UI_DisplaySmallDigits(2, String + 6, 113, Line + 1, true);
|
||||
#else
|
||||
// show the frequency in the main font
|
||||
sprintf(String, "%03u.%05u", frequency / 100000, frequency % 100000);
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "bitmaps.h"
|
||||
#include "board.h"
|
||||
#include "dcs.h"
|
||||
#include "driver/backlight.h"
|
||||
#include "driver/bk4819.h"
|
||||
#include "driver/eeprom.h" // EEPROM_ReadBuffer()
|
||||
#include "driver/st7565.h"
|
||||
@ -393,6 +394,14 @@ void UI_DisplayMenu(void)
|
||||
break;
|
||||
|
||||
case MENU_ABR:
|
||||
if (gEeprom.BACKLIGHT == 0)
|
||||
{ // turn the light on so the user can see the screen
|
||||
const uint8_t value = gEeprom.BACKLIGHT;
|
||||
gEeprom.BACKLIGHT = 1;
|
||||
BACKLIGHT_TurnOn();
|
||||
gEeprom.BACKLIGHT = value; // restore the setting
|
||||
}
|
||||
|
||||
strcpy(String, gSubMenu_BACK_LIGHT[gSubMenuSelection]);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user