Skip to content

Commit

Permalink
examples/hwapi/hwconfig_console: Don't alloc memory in value().
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed Dec 23, 2016
1 parent 1328833 commit 1e9093f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/hwapi/hwconfig_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1e9093f

Please sign in to comment.