diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-12-23 17:24:24 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-12-23 17:24:24 +0300 |
commit | 1e9093f8cbe117d50451a204f513fea78ef6abfb (patch) | |
tree | 4acad1aae8aec7db9ca3ef42de4f7f475cec5150 /examples/hwapi | |
parent | 13288336630b2b6aaadb96939a07925f94faecb8 (diff) | |
download | micropython-1e9093f8cbe117d50451a204f513fea78ef6abfb.tar.gz micropython-1e9093f8cbe117d50451a204f513fea78ef6abfb.zip |
examples/hwapi/hwconfig_console: Don't alloc memory in value().
Diffstat (limited to 'examples/hwapi')
-rw-r--r-- | examples/hwapi/hwconfig_console.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/hwapi/hwconfig_console.py b/examples/hwapi/hwconfig_console.py index 7355571a10..4b0b0d79bd 100644 --- a/examples/hwapi/hwconfig_console.py +++ b/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) |