mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-30 22:19:12 +03:00
transport/pcsc: cosmetic: reuse the existing code of PcscSimLink
Change-Id: I5360df644032b95654e99ccaa5118952e8d55faf
This commit is contained in:
@@ -63,11 +63,8 @@ class PcscSimLink(LinkBase):
|
|||||||
self._con.disconnect()
|
self._con.disconnect()
|
||||||
|
|
||||||
def reset_card(self):
|
def reset_card(self):
|
||||||
self._con.disconnect()
|
self.disconnect()
|
||||||
try:
|
self.connect()
|
||||||
self._con.connect()
|
|
||||||
except NoCardException:
|
|
||||||
raise NoCardError()
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
def send_apdu_raw(self, pdu):
|
def send_apdu_raw(self, pdu):
|
||||||
|
|||||||
Reference in New Issue
Block a user