summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/machine_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/machine_i2c.c')
-rw-r--r--stmhal/machine_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/machine_i2c.c b/stmhal/machine_i2c.c
index aec53205f5..1be2151e3b 100644
--- a/stmhal/machine_i2c.c
+++ b/stmhal/machine_i2c.c
@@ -510,14 +510,14 @@ mp_obj_t machine_hard_i2c_make_new(const mp_obj_type_t *type, size_t n_args, siz
#endif
} else {
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError,
- "I2C(%s) does not exist", port));
+ "I2C(%s) doesn't exist", port));
}
} else {
i2c_id = mp_obj_get_int(args[ARG_id].u_obj);
if (i2c_id < 1 || i2c_id > MP_ARRAY_SIZE(machine_hard_i2c_obj)
|| machine_hard_i2c_obj[i2c_id - 1].base.type == NULL) {
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError,
- "I2C(%d) does not exist", i2c_id));
+ "I2C(%d) doesn't exist", i2c_id));
}
}