Skip to content

Commit 1e9093f

Browse files
committed
examples/hwapi/hwconfig_console: Don't alloc memory in value().
1 parent 1328833 commit 1e9093f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/hwapi/hwconfig_console.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
class LEDClass:
44

55
def __init__(self, id):
6-
self.id = id
6+
self.id = "LED(%d):" % id
77

88
def value(self, v):
9-
print("LED(%d):" % self.id, v)
9+
print(self.id, v)
1010

1111

1212
LED = LEDClass(1)

0 commit comments

Comments
 (0)