wrote nicer loop condition for the desfire-info-pcsc example