mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user