diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-04-19 00:54:33 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-04-19 00:54:33 +0100 |
| commit | 44ee42de50776210293ef7edea9089e5327142e2 (patch) | |
| tree | 2bea122516b800d32306bd09f5bd5e9062dca860 /stmhal/led.c | |
| parent | 8cf08a58a1a429350dc7057e08b0b7e494f60fe3 (diff) | |
stmhal: Rename pyb.Led to pyb.LED to conform to naming rules.
It's Light Emitting Diode, so should be LED.
Diffstat (limited to 'stmhal/led.c')
| -rw-r--r-- | stmhal/led.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/led.c b/stmhal/led.c index 52a787eed..c00081cea 100644 --- a/stmhal/led.c +++ b/stmhal/led.c @@ -204,7 +204,7 @@ STATIC mp_obj_t led_obj_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const // check led number if (!(0 <= led_id && led_id < NUM_LEDS)) { - nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "Led %d does not exist", led_id)); + nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "LED %d does not exist", led_id)); } // return static led object @@ -255,7 +255,7 @@ STATIC MP_DEFINE_CONST_DICT(led_locals_dict, led_locals_dict_table); const mp_obj_type_t pyb_led_type = { { &mp_type_type }, - .name = MP_QSTR_Led, + .name = MP_QSTR_LED, .print = led_obj_print, .make_new = led_obj_make_new, .locals_dict = (mp_obj_t)&led_locals_dict, |
