From 058002152eced078074d641c38e7ca540eeee2ff Mon Sep 17 00:00:00 2001 From: Bobby Dilley Date: Tue, 19 Jul 2022 12:44:37 +0100 Subject: [PATCH] fix jmp err --- src/lindbergh/securityboard.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lindbergh/securityboard.c b/src/lindbergh/securityboard.c index c085566..3a36366 100644 --- a/src/lindbergh/securityboard.c +++ b/src/lindbergh/securityboard.c @@ -102,13 +102,12 @@ int securityBoardIn(uint16_t port, uint32_t *data) switch (port) { case SECURITY_BOARD_FRONT_PANEL: + { uint32_t result = 0xFFFFFFFF; - if (securityBoard.serviceSwitch) result &= ~0x08; if (securityBoard.testSwitch) result &= ~0x04; - if (securityBoard.dipSwitch[6]) result &= ~0x800; // DIP 6 if (securityBoard.dipSwitch[5]) @@ -125,9 +124,10 @@ int securityBoardIn(uint16_t port, uint32_t *data) result &= ~0x20; if (securityBoard.dipSwitch[7]) result &= ~0x10; - *data = result; - break; + } + break; + default: break; }