Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit e907a12

Browse files
committed
Correctly read application data
This function was ignoring records beyond 1, which was affecting CAP on newer Barclays cards because IAF and IPB have moved to record 2. Fixes #20
1 parent a42c320 commit e907a12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

emv/card.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def get_application_data(self, afl):
141141
end_rec = afl[i + 2]
142142
# dar = afl[i + 3]
143143
for i in range(start_rec, end_rec + 1):
144-
res = self.tp.exchange(ReadCommand(start_rec, sfi))
144+
res = self.tp.exchange(ReadCommand(i, sfi))
145145
data.update(res.data[Tag.RECORD])
146146
return data
147147

0 commit comments

Comments
 (0)