1
0
mirror of synced 2024-11-15 01:57:36 +01:00

fix jmp err

This commit is contained in:
Bobby Dilley 2022-07-19 12:44:37 +01:00
parent b00c7976b1
commit 058002152e

View File

@ -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;
}