mirror of https://gerrit.osmocom.org/simtrace2
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
This commit is contained in:
parent
017e10e9ef
commit
264f615b65
|
@ -461,7 +461,11 @@ static int card_vcc_adc_init(void)
|
||||||
|
|
||||||
static void process_vcc_adc(struct cardem_inst *ci)
|
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)
|
if (ci->vcc_uv >= VCC_UV_THRESH_3V)
|
||||||
|
#endif
|
||||||
ci->vcc_active = true;
|
ci->vcc_active = true;
|
||||||
else
|
else
|
||||||
ci->vcc_active = false;
|
ci->vcc_active = false;
|
||||||
|
|
Loading…
Reference in New Issue