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:
Eric Wild 2021-06-26 02:54:20 +02:00
parent 017e10e9ef
commit 264f615b65
1 changed files with 4 additions and 0 deletions

View File

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