mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 11:08:20 +00:00
Fixed PTT and key presses when backlight is off
This commit is contained in:
1 parent
45b5cbe315
commit
c23d21bcf1
4 files changed
+5
-2
No files matched your search
@@ -1847,8 +1847,11 @@ static void APP_ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
|
||||
// const bool backlight_was_on = (gBacklightCountdown > 0 || gEeprom.BACKLIGHT >= 5);
|
||||
const bool backlight_was_on = GPIO_CheckBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT);
|
||||
|
||||
// if (Key == KEY_EXIT && bKeyPressed && !bKeyHeld && !backlight_was_on)
|
||||
if (bKeyPressed && !bKeyHeld && !backlight_was_on)
|
||||
if (Key != KEY_PTT &&
|
||||
Key != KEY_F &&
|
||||
bKeyPressed &&
|
||||
!bKeyHeld &&
|
||||
!backlight_was_on)
|
||||
{ // just turn the light on for now
|
||||
BACKLIGHT_TurnOn();
|
||||
// gKeyReading0 = KEY_INVALID;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user