Skip to content

Commit 7c12872

Browse files
committed
Fix error in formatting RuntimeError string.
Before you got: ``` TypeError: not all arguments converted during string formatting ``` Now you get: ``` RuntimeError: Failed to find STMPE610 controller! Chip Version 0XFFFF. If you are using the breakout, verify you are in SPI mode. ```
1 parent 51c4c0f commit 7c12872

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

adafruit_stmpe610.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ def __init__( # pylint: disable=too-many-arguments
471471
raise RuntimeError(
472472
f"Failed to find STMPE610 controller! Chip Version {hex(version).upper()}. "
473473
"If you are using the breakout, verify you are in SPI mode."
474-
% version
475474
)
476475
super().__init__()
477476

0 commit comments

Comments
 (0)