Skip to content

Commit

Permalink
Merge pull request #12 from hstarmans/patch1
Browse files Browse the repository at this point in the history
fixed string formatting for micropython
  • Loading branch information
brainelectronics authored May 30, 2024
2 parents 1838d2e + 36a8807 commit f2641b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
### Fixed
-->
## [0.5.3] - 2024-05-30
### Fixed
- fixed string formatting for compatibility with micropython
## [0.5.2] - 2023-11-15
### Fixed
- await function no longer caught in loop and has timeout of 2 seconds
Expand Down
4 changes: 2 additions & 2 deletions winbond/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-

__version_info__ = ("0", "5", "2")
__version__ = '.'.join(__version_info__)
__version_info__ = ("0", "5", "3")
__version__ = ".".join(__version_info__)
4 changes: 2 additions & 2 deletions winbond/winbond.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def identify(self) -> None:
format(hex(mf), hex(mem_type), hex(cap)))
if mf != 0xEF or mem_type not in [0x40, 0x60, 0x70]:
# Winbond manufacturer, Q25 series memory (tested 0x40 only)
print(f"Warning manufacturer ({hex(mf)}) or memory type"
f"({hex(mem_type)}) not tested.")
print(f"""Warning manufacturer ({hex(mf)}) or memory type
({hex(mem_type)}) not tested.""")

self._manufacturer = mf
self._mem_type = mem_type
Expand Down

0 comments on commit f2641b5

Please sign in to comment.