mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
initialize VCC, RST, and VCC with actual values
previously the card RST, VCC, and CLK signal states have been initialized with default values corresponding to an inactive reader. this worked fine for actual inactive readers since the default values match and would be updated when the signal changes (edge detection). but if the reader is in another state, card activation detection could fail. this is fixed since the actual signal values are now used during initialisation. at the same time I changed the variable type from uint8_t to boolean since they have only two possible states, and understanding the actual state when coding is simpler (no need to check which integer corresponds to which state). this change has been successfully tested on the 2 slots of OWHW board. Change-Id: Ie9245d75d48ae93d16f97897d4fa5ad6cd402e73
This commit is contained in:
@@ -397,7 +397,7 @@ int main(int argc, char **argv)
|
||||
struct card_handle *ch;
|
||||
unsigned int i;
|
||||
|
||||
ch = card_emu_init(0, 23, 42, PHONE_DATAIN, PHONE_INT);
|
||||
ch = card_emu_init(0, 23, 42, PHONE_DATAIN, PHONE_INT, false, true, false);
|
||||
assert(ch);
|
||||
|
||||
usb_buf_init();
|
||||
|
||||
Reference in New Issue
Block a user