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/spi.c | |
parent | 48d867b4a68e53901aac87c2ff0f2a7e65f735c7 (diff) | |
download | micropython-2bf5a947b2b01f2be6c7b05707391dd09b240ad0.tar.gz micropython-2bf5a947b2b01f2be6c7b05707391dd09b240ad0.zip |
stmhal: Make error messages more consistent across peripherals.
Diffstat (limited to 'stmhal/spi.c')
-rw-r--r-- | stmhal/spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/spi.c b/stmhal/spi.c index eb7edbea06..b710fc3a7c 100644 --- a/stmhal/spi.c +++ b/stmhal/spi.c @@ -182,7 +182,7 @@ STATIC int spi_find(mp_obj_t id) { #endif } nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, - "SPI(%s) does not exist", port)); + "SPI(%s) doesn't exist", port)); } else { // given an integer id int spi_id = mp_obj_get_int(id); @@ -191,7 +191,7 @@ STATIC int spi_find(mp_obj_t id) { return spi_id; } nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, - "SPI(%d) does not exist", spi_id)); + "SPI(%d) doesn't exist", spi_id)); } } |