summaryrefslogtreecommitdiff
path: root/firmware/src
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/src')
-rw-r--r--firmware/src/simtrace/sim_switch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/src/simtrace/sim_switch.c b/firmware/src/simtrace/sim_switch.c
index f83290f..faf48f0 100644
--- a/firmware/src/simtrace/sim_switch.c
+++ b/firmware/src/simtrace/sim_switch.c
@@ -51,7 +51,7 @@ void sim_switch_mode(int connect_io, int connect_misc)
static void sw_sim_irq(u_int32_t pio)
{
- if (!AT91F_PIO_IsInputSet(AT91C_BASE_PIOA, pio))
+ if (!AT91F_PIO_IsInputSet(AT91C_BASE_PIOA, SIMTRACE_PIO_SW_SIM))
DEBUGPCR("SIM card inserted");
else
DEBUGPCR("SIM card removed");
@@ -59,7 +59,7 @@ static void sw_sim_irq(u_int32_t pio)
static void vcc_phone_irq(u_int32_t pio)
{
- if (!AT91F_PIO_IsInputSet(AT91C_BASE_PIOA, pio))
+ if (!AT91F_PIO_IsInputSet(AT91C_BASE_PIOA, SIMTRACE_PIO_VCC_PHONE))
DEBUGPCR("VCC_PHONE off");
else
DEBUGPCR("VCC_PHONE on");
personal git repositories of Harald Welte. Your mileage may vary