fix: NV14 bootloader navigation not working (#1534)
This commit is contained in:
@@ -39,7 +39,9 @@ uint32_t readKeys()
|
|||||||
{
|
{
|
||||||
uint32_t result = 0;
|
uint32_t result = 0;
|
||||||
|
|
||||||
|
#ifndef BOOT
|
||||||
if (getTrimsAsButtons()) {
|
if (getTrimsAsButtons()) {
|
||||||
|
#endif
|
||||||
if (TRIMS_GPIO_REG_LHL & TRIMS_GPIO_PIN_LHL)
|
if (TRIMS_GPIO_REG_LHL & TRIMS_GPIO_PIN_LHL)
|
||||||
result |= 1 << KEY_RADIO;
|
result |= 1 << KEY_RADIO;
|
||||||
if (TRIMS_GPIO_REG_LHR & TRIMS_GPIO_PIN_LHR)
|
if (TRIMS_GPIO_REG_LHR & TRIMS_GPIO_PIN_LHR)
|
||||||
@@ -56,7 +58,9 @@ uint32_t readKeys()
|
|||||||
result |= 1 << KEY_LEFT;
|
result |= 1 << KEY_LEFT;
|
||||||
if (TRIMS_GPIO_REG_RHR & TRIMS_GPIO_PIN_RHR)
|
if (TRIMS_GPIO_REG_RHR & TRIMS_GPIO_PIN_RHR)
|
||||||
result |= 1 << KEY_RIGHT;
|
result |= 1 << KEY_RIGHT;
|
||||||
|
#ifndef BOOT
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Enter and Exit are always supported
|
// Enter and Exit are always supported
|
||||||
if (TRIMS_GPIO_REG_RPRESS & TRIMS_GPIO_PIN_RPRESS)
|
if (TRIMS_GPIO_REG_RPRESS & TRIMS_GPIO_PIN_RPRESS)
|
||||||
|
|||||||
Reference in New Issue
Block a user