Skip to content

Commit

Permalink
Correcting date parsing bug for human readable date.
Browse files Browse the repository at this point in the history
This fixes #11
  • Loading branch information
Christian Holl committed Apr 14, 2014
1 parent 9ba3d1b commit 514aa26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FlashAir/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, file_name, directory_name, size, attributes, date, time):

date=int(date)
self.date=date;
self.date_human=(((date&(0x3F<<9))>>9)+1980,((date&(0x1F<<5))>>5),date&(0x1F))
self.date_human=(((date&(0x3F<<9))>>9)+1980,((date&(0xF<<5))>>5),date&(0x1F))


class command(object):
Expand Down

0 comments on commit 514aa26

Please sign in to comment.