Reuse existing error message in busio.i2c
Remove a period from the error message, so that the same message as in SPI and other places in I2C can be re-used.
This commit is contained in:
parent
fce63b17c6
commit
cc6fb4595e
|
@ -114,7 +114,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(busio_i2c___exit___obj, 4, 4, busio_i
|
||||||
static void check_lock(busio_i2c_obj_t *self) {
|
static void check_lock(busio_i2c_obj_t *self) {
|
||||||
asm("");
|
asm("");
|
||||||
if (!common_hal_busio_i2c_has_lock(self)) {
|
if (!common_hal_busio_i2c_has_lock(self)) {
|
||||||
mp_raise_RuntimeError(translate("Function requires lock."));
|
mp_raise_RuntimeError(translate("Function requires lock"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue