Skip to content

Commit

Permalink
fixed bug in set WP reg
Browse files Browse the repository at this point in the history
  • Loading branch information
shaoziyang committed Mar 24, 2018
1 parent 38c9e29 commit 599eab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/DS1302/DS1302.py
Expand Up @@ -65,7 +65,7 @@ def setReg(self, reg, dat):
def wr(self, reg, dat):
self.setReg(DS1302_REG_WP, 0)
self.setReg(reg, dat)
self.setReg(DS1302_REG_WP, 0)
self.setReg(DS1302_REG_WP, 0x80)

def start(self):
t = self.getReg(DS1302_REG_SECOND + 1)
Expand Down

0 comments on commit 599eab1

Please sign in to comment.