summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/lcd.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-06-15 12:02:14 +1000
committerDamien George <damien.p.george@gmail.com>2017-06-15 12:02:14 +1000
commit2bf5a947b2b01f2be6c7b05707391dd09b240ad0 (patch)
treeb877cdfe14d17ff129d7e60a587b92aed39023e7 /stmhal/lcd.c
parent48d867b4a68e53901aac87c2ff0f2a7e65f735c7 (diff)
downloadmicropython-2bf5a947b2b01f2be6c7b05707391dd09b240ad0.tar.gz
micropython-2bf5a947b2b01f2be6c7b05707391dd09b240ad0.zip
stmhal: Make error messages more consistent across peripherals.
Diffstat (limited to 'stmhal/lcd.c')
-rw-r--r--stmhal/lcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/lcd.c b/stmhal/lcd.c
index da09744606..cdf9fa0d1a 100644
--- a/stmhal/lcd.c
+++ b/stmhal/lcd.c
@@ -220,7 +220,7 @@ STATIC mp_obj_t pyb_lcd_make_new(const mp_obj_type_t *type, size_t n_args, size_
lcd->pin_a0 = &pyb_pin_Y5;
lcd->pin_bl = &pyb_pin_Y12;
} else {
- nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "LCD bus '%s' does not exist", lcd_id));
+ nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "LCD(%s) doesn't exist", lcd_id));
}
// init the SPI bus