aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wild <ewild@sysmocom.de>2019-11-27 18:34:39 +0100
committerEric Wild <ewild@sysmocom.de>2019-11-28 13:42:16 +0100
commit3e859905776b88f0ecf3641ff44f565e5fa46541 (patch)
tree6a64ee2d1ded20c65bb324f4d8afe1f382cbdc64
parent4c4583a65f8c4e4b2118516c48557b68f334910c (diff)
add some volatility to debug missing state changes
-rw-r--r--sysmoOCTSIM/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c
index 54616af..02b7b09 100644
--- a/sysmoOCTSIM/main.c
+++ b/sysmoOCTSIM/main.c
@@ -101,7 +101,7 @@ struct ccid_state {
/* bit-mask of card-insert status, as determined from NCN8025 IRQ output */
uint8_t card_insert_mask;
};
-static struct ccid_state g_ccid_s;
+static volatile struct ccid_state g_ccid_s;
static void ccid_out_read_compl(const uint8_t ep, enum usb_xfer_code code, uint32_t transferred);
static void ccid_in_write_compl(const uint8_t ep, enum usb_xfer_code code, uint32_t transferred);