File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212### Removed
1313### Fixed
1414-->
15+ ## [ 0.5.4] - 2024-05-30
16+ ### Fixed
17+ - sleep changed to microsecond sleep to speed up flashing
1518## [ 0.5.3] - 2024-05-30
1619### Fixed
1720- fixed string formatting for compatibility with micropython
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22# -*- coding: UTF-8 -*-
33
4- __version_info__ = ("0" , "5" , "3 " )
4+ __version_info__ = ("0" , "5" , "4 " )
55__version__ = "." .join (__version_info__ )
Original file line number Diff line number Diff line change @@ -233,9 +233,9 @@ def _await(self) -> None:
233233 # last bit (1) is BUSY bit in stat. reg. byte (0 = not busy, 1 = busy)
234234 trials = 0
235235 while 0x1 & self .spi .read (1 , 0xFF )[0 ]:
236- if trials > 20 :
236+ if trials > 5E6 :
237237 raise Exception ("Device keeps busy, aborting." )
238- time .sleep ( 0. 1 )
238+ time .sleep_us ( 1 )
239239 trials += 1
240240 self .cs (1 )
241241 self ._busy = False
You can’t perform that action at this time.
0 commit comments