Skip to content

Commit f5f366e

Browse files
committed
Replaced f-string in hardware.py for backwards compatibility with old micropython versions.
1 parent 003c2af commit f5f366e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/pyControl/hardware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def check(self, sample):
410410

411411
def set_threshold(self, threshold, run_start=False):
412412
if not isinstance(threshold, int):
413-
raise ValueError(f"Threshold must be an integer, got {type(threshold).__name__}.")
413+
raise ValueError("Threshold must be an integer, got {}.".format(type(threshold).__name__))
414414
self.threshold = threshold
415415
self.reset_above_threshold = True
416416

0 commit comments

Comments
 (0)