Skip to content

Commit

Permalink
All tests for rcs380 chipset and sense methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
nehpetsde committed Apr 3, 2017
1 parent 98f61b0 commit 99c3794
Show file tree
Hide file tree
Showing 2 changed files with 544 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/nfc/clf/rcs380.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def get_pd_data_version(self):

def get_command_type(self):
data = self.send_command(0x28, [])
return struct.unpack(">Q", str(data[0:8]))
return struct.unpack(">Q", str(data[0:8]))[0]

def set_command_type(self, command_type):
data = self.send_command(0x2A, [command_type])
Expand Down

0 comments on commit 99c3794

Please sign in to comment.