fix: NV14 bootloader navigation not working (#1534)

This commit is contained in:
Peter Feerick
2022-02-04 10:50:54 +10:00
committed by GitHub
parent 44f12ba7f0
commit 65ed80aa92
+4
View File
@@ -39,7 +39,9 @@ uint32_t readKeys()
{
uint32_t result = 0;
#ifndef BOOT
if (getTrimsAsButtons()) {
#endif
if (TRIMS_GPIO_REG_LHL & TRIMS_GPIO_PIN_LHL)
result |= 1 << KEY_RADIO;
if (TRIMS_GPIO_REG_LHR & TRIMS_GPIO_PIN_LHR)
@@ -56,7 +58,9 @@ uint32_t readKeys()
result |= 1 << KEY_LEFT;
if (TRIMS_GPIO_REG_RHR & TRIMS_GPIO_PIN_RHR)
result |= 1 << KEY_RIGHT;
#ifndef BOOT
}
#endif
// Enter and Exit are always supported
if (TRIMS_GPIO_REG_RPRESS & TRIMS_GPIO_PIN_RPRESS)