Permalink
Browse files

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

  • Loading branch information...
1 parent 1328833 commit 1e9093f8cbe117d50451a204f513fea78ef6abfb @pfalcon pfalcon committed Dec 23, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/hwapi/hwconfig_console.py
@@ -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)

0 comments on commit 1e9093f

Please sign in to comment.