examples/hwapi/hwconfig_console: Don't alloc memory in value().
This commit is contained in:
parent
1328833663
commit
1e9093f8cb
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user