diff options
author | Eric Wild <ewild@sysmocom.de> | 2021-06-26 02:54:20 +0200 |
---|---|---|
committer | Eric Wild <ewild@sysmocom.de> | 2021-06-26 02:54:20 +0200 |
commit | 264f615b659e1e362aef0739cc2b4bb1eed7e2b4 (patch) | |
tree | 238f6c4d1e8e095bfa60b7289d7ce76578ca3c91 | |
parent | 017e10e9efec2d4065e9c6631d24be93ad5f02fd (diff) |
cardemu: support 1v8 for the tester
The tester has shifters, while the original simtrace relies upon the
reader restarting the powerup attempt with > 1v8 after not respondig due
to a lack of shifters and therefore 1v8 support.
Change-Id: I520aa26c6e0fb34568a4f632943efa59a0da831c
-rw-r--r-- | firmware/libcommon/source/mode_cardemu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/libcommon/source/mode_cardemu.c b/firmware/libcommon/source/mode_cardemu.c index b9971ed..2440ec5 100644 --- a/firmware/libcommon/source/mode_cardemu.c +++ b/firmware/libcommon/source/mode_cardemu.c @@ -461,7 +461,11 @@ static int card_vcc_adc_init(void) static void process_vcc_adc(struct cardem_inst *ci) { +#ifdef octsimtest + if (ci->vcc_uv >= VCC_UV_THRESH_1V8) +#else if (ci->vcc_uv >= VCC_UV_THRESH_3V) +#endif ci->vcc_active = true; else ci->vcc_active = false; |