Skip to content

Commit 7a3dee3

Browse files
authored
Merge pull request #31 from aarontusko/fix-write_fuses-busy_wait
Added _busy_wait() calls after every write_fuses() transaction
2 parents c4d3e00 + 906171b commit 7a3dee3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adafruit_avrprog.py

+4
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,13 @@ def write_fuses(self, chip, low=None, high=None, ext=None, lock=None):
251251
"""
252252
self.begin(clock=_SLOW_CLOCK)
253253
lock and self._transaction((0xAC, 0xE0, 0, lock))
254+
self._busy_wait()
254255
low and self._transaction((0xAC, 0xA0, 0, low))
256+
self._busy_wait()
255257
high and self._transaction((0xAC, 0xA8, 0, high))
258+
self._busy_wait()
256259
ext and self._transaction((0xAC, 0xA4, 0, ext))
260+
self._busy_wait()
257261
self.end()
258262

259263
# pylint: enable=unused-argument,expression-not-assigned

0 commit comments

Comments
 (0)