[Pcsclite-cvs-commit] r4672 - /trunk/PCSC/UnitaryTests/control_switch_interface.py
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Fri Jan 15 13:44:09 UTC 2010
Author: rousseau
Date: Fri Jan 15 13:44:07 2010
New Revision: 4672
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4672
Log:
parse error code
Modified:
trunk/PCSC/UnitaryTests/control_switch_interface.py
Modified: trunk/PCSC/UnitaryTests/control_switch_interface.py
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/UnitaryTests/control_switch_interface.py?rev=4672&op=diff
==============================================================================
--- trunk/PCSC/UnitaryTests/control_switch_interface.py (original)
+++ trunk/PCSC/UnitaryTests/control_switch_interface.py Fri Jan 15 13:44:07 2010
@@ -37,7 +37,14 @@
print "FAILED"
else:
if res != [0, 0, 0, 0]:
- print "Failed: ", map(hex, res)
+ print "Failed: ",
+ err = res[0] * 256 + res[1]
+ if err == 0xFF83:
+ print "Wrong data parameters"
+ elif err == 0xFF84:
+ print "Wrong command bytes"
+ else:
+ print "Unknown error:", map(hex, res)
else:
print "Success"
More information about the Pcsclite-cvs-commit
mailing list