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

This commit is contained in:
Paul Sokolovsky 2016-12-23 17:24:24 +03:00
parent 1328833663
commit 1e9093f8cb

View File

@ -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)