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:
Radomir Dopieralski 2019-03-25 01:41:52 +01:00
parent fce63b17c6
commit cc6fb4595e

View File

@ -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) {
asm("");
if (!common_hal_busio_i2c_has_lock(self)) {
mp_raise_RuntimeError(translate("Function requires lock."));
mp_raise_RuntimeError(translate("Function requires lock"));
}
}