Skip to content

Commit f2641b5

Browse files
Merge pull request #12 from hstarmans/patch1
fixed string formatting for micropython
2 parents 1838d2e + 36a8807 commit f2641b5

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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.3] - 2024-05-30
16+
### Fixed
17+
- fixed string formatting for compatibility with micropython
1518
## [0.5.2] - 2023-11-15
1619
### Fixed
1720
- await function no longer caught in loop and has timeout of 2 seconds

winbond/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
22
# -*- coding: UTF-8 -*-
33

4-
__version_info__ = ("0", "5", "2")
5-
__version__ = '.'.join(__version_info__)
4+
__version_info__ = ("0", "5", "3")
5+
__version__ = ".".join(__version_info__)

winbond/winbond.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ def identify(self) -> None:
172172
format(hex(mf), hex(mem_type), hex(cap)))
173173
if mf != 0xEF or mem_type not in [0x40, 0x60, 0x70]:
174174
# Winbond manufacturer, Q25 series memory (tested 0x40 only)
175-
print(f"Warning manufacturer ({hex(mf)}) or memory type"
176-
f"({hex(mem_type)}) not tested.")
175+
print(f"""Warning manufacturer ({hex(mf)}) or memory type
176+
({hex(mem_type)}) not tested.""")
177177

178178
self._manufacturer = mf
179179
self._mem_type = mem_type

0 commit comments

Comments
 (0)