diff --git a/examples/hwapi/hwconfig_console.py b/examples/hwapi/hwconfig_console.py index 7355571a10..4b0b0d79bd 100644 --- a/examples/hwapi/hwconfig_console.py +++ b/examples/hwapi/hwconfig_console.py @@ -3,10 +3,10 @@ class LEDClass: def __init__(self, id): - self.id = id + self.id = "LED(%d):" % id def value(self, v): - print("LED(%d):" % self.id, v) + print(self.id, v) LED = LEDClass(1)