Commit b6182958 authored by axel.maurer's avatar axel.maurer
Browse files

minor changes

parent dd333e7a
......@@ -160,7 +160,7 @@ class CardReader:
else:
return(ERROR_READER_READ)
def doOp(self, opCode, opParmStr, opParmLen, timeout=None):
def doOp(self, opCode, opParmStr=None, opParmLen=0, timeout=None):
self.serCon.ser.timeout = timeout
self.write(opCode, opParmStr, opParmLen)
self.returnMsg = ''
......@@ -196,6 +196,6 @@ if __name__ == "__main__":
print(cardReader.getReturnMsg())
sys.exit()
# actSeconds = str(int(time.time()))
cardReader.doOp(f'01',None,0)
cardReader.doOp(f'01')
print(cardReader.getReturnCode(),cardReader.getReturnMsg())
cardReader.clear()
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment