Commit 1e9093f8 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

examples/hwapi/hwconfig_console: Don't alloc memory in value().

parent 13288336
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
class LEDClass: class LEDClass:
def __init__(self, id): def __init__(self, id):
self.id = id self.id = "LED(%d):" % id
def value(self, v): def value(self, v):
print("LED(%d):" % self.id, v) print(self.id, v)
LED = LEDClass(1) LED = LEDClass(1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment