aboutsummaryrefslogtreecommitdiff
path: root/teensy
diff options
context:
space:
mode:
authorDamien George2014-02-15 11:34:50 +0000
committerDamien George2014-02-15 11:34:50 +0000
commita71c83a1d1aeca1d81d7c673929f8e836dec131e (patch)
tree5c49441e19c3feffbc792eec7ecfbc3ca3036830 /teensy
parent8ac72b9d000ecc48a2d558bdb7c73c7f98d4be62 (diff)
Change mp_obj_type_t.name from const char * to qstr.
Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method.
Diffstat (limited to 'teensy')
-rw-r--r--teensy/led.c2
-rw-r--r--teensy/servo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/teensy/led.c b/teensy/led.c
index f16ba83b3..49ba46b4d 100644
--- a/teensy/led.c
+++ b/teensy/led.c
@@ -71,7 +71,7 @@ static const mp_method_t led_methods[] = {
static const mp_obj_type_t led_obj_type = {
{ &mp_const_type },
- "Led",
+ .name = MP_QSTR_Led,
.print = led_obj_print,
.methods = led_methods,
};
diff --git a/teensy/servo.c b/teensy/servo.c
index da720c892..c3a2b2888 100644
--- a/teensy/servo.c
+++ b/teensy/servo.c
@@ -190,7 +190,7 @@ static const mp_method_t servo_methods[] = {
static const mp_obj_type_t servo_obj_type = {
{ &mp_const_type },
- "Servo",
+ .name = MP_QSTR_Servo,
.print = servo_obj_print,
.methods = servo_methods,
};