Change in osmo-ccid-firmware[master]: sim-atr command: enable the LED when the command is active.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Apr 17 15:33:31 UTC 2019


Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/13694


Change subject: sim-atr command: enable the LED when the command is active.
......................................................................

sim-atr command: enable the LED when the command is active.

Change-Id: I50c125d46233e86003cc14ec9b5bac47127e8776
---
M sysmoOCTSIM/main.c
1 file changed, 7 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/94/13694/1

diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c
index 5b10c5f..ea07683 100644
--- a/sysmoOCTSIM/main.c
+++ b/sysmoOCTSIM/main.c
@@ -239,6 +239,7 @@
 	// note: ISO/IEC 7816-3:2006 section 6.4 provides the deactivation sequence, but not the minimum corresponding times
 	settings.rstin = true;
 	settings.cmdvcc = false;
+	settings.led = true;
 	ncn8025_set(slotnr, &settings);
 
 	// TODO wait some time for card to be completely deactivated
@@ -293,6 +294,12 @@
 		}
 	}
 	printf("\r\n");
+
+	/* disable VCC and LED, re-enable RST */
+	settings.cmdvcc = false;
+	settings.rstin = true;
+	settings.led = false;
+	ncn8025_set(slotnr, &settings);
 }
 
 extern void testmode_init(void);

-- 
To view, visit https://gerrit.osmocom.org/13694
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I50c125d46233e86003cc14ec9b5bac47127e8776
Gerrit-Change-Number: 13694
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190417/9c9563af/attachment.htm>


More information about the gerrit-log mailing list