From 7c1287257f03d09506eec041e19ff7e0dc5d9e5c Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 25 Oct 2022 15:55:51 -0700 Subject: [PATCH] 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. ``` --- adafruit_stmpe610.py | 1 - 1 file changed, 1 deletion(-) diff --git a/adafruit_stmpe610.py b/adafruit_stmpe610.py index fa8f337..60f5f1a 100755 --- a/adafruit_stmpe610.py +++ b/adafruit_stmpe610.py @@ -471,7 +471,6 @@ def __init__( # pylint: disable=too-many-arguments raise RuntimeError( f"Failed to find STMPE610 controller! Chip Version {hex(version).upper()}. " "If you are using the breakout, verify you are in SPI mode." - % version ) super().__init__()