~webreg-fd/nfcpy/dev-rcs967

« back to all changes in this revision

Viewing changes to nfc/clf.py

  • Committer: stephen.tiedemann at gmail
  • Date: 2014-01-09 17:58:35 UTC
  • Revision ID: stephen.tiedemann@gmail.com-20140109175835-87e07fdq0za9dwd3
debug log tx/rx data in clf exchange method

Show diffs side-by-side

added added

removed removed

Lines of Context:
549
549
            raise IOError(errno.ENODEV, os.strerror(errno.ENODEV))
550
550
        
551
551
        with self.lock:
552
 
            return self.dev.exchange(send_data, timeout)
 
552
            log.debug(">>> %s %.3fs" % (str(send_data).encode("hex"), timeout))
 
553
            rcvd_data = self.dev.exchange(send_data, timeout)
 
554
            log.debug("<<< %s" % str(rcvd_data).encode("hex"))
 
555
            return rcvd_data
553
556
 
554
557
    def set_communication_mode(self, brm, **kwargs):
555
558
        """Set the hardware communication mode. The effect of calling