serial: return a return code in reset_card()

The method reset_card does not return a return code, while the
coresponding pcsc implementation does return 1 on success.

Change-Id: I658dd6857580652696b4a77e7d6cfe5778f09eff
This commit is contained in:
Philipp Maier 2023-06-01 18:00:54 +02:00 committed by laforge
parent 60951b0c17
commit 621f78c943
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ class SerialSimLink(LinkBase):
raise NoCardError()
elif rv < 0:
raise ProtocolError()
return rv
def _reset_card(self):
self._atr = None