diff options
| author | Damien George <damien.p.george@gmail.com> | 2017-06-15 12:02:14 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2017-06-15 12:02:14 +1000 |
| commit | 2bf5a947b2b01f2be6c7b05707391dd09b240ad0 (patch) | |
| tree | b877cdfe14d17ff129d7e60a587b92aed39023e7 /stmhal/led.c | |
| parent | 48d867b4a68e53901aac87c2ff0f2a7e65f735c7 (diff) | |
stmhal: Make error messages more consistent across peripherals.
Diffstat (limited to 'stmhal/led.c')
| -rw-r--r-- | stmhal/led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/led.c b/stmhal/led.c index 466514684..4b9895fc5 100644 --- a/stmhal/led.c +++ b/stmhal/led.c @@ -299,7 +299,7 @@ STATIC mp_obj_t led_obj_make_new(const mp_obj_type_t *type, size_t n_args, size_ // check led number if (!(1 <= 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) doesn't exist", led_id)); } // return static led object |
