Skip to content

Commit cc6fb45

Browse files
committed
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.
1 parent fce63b1 commit cc6fb45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • shared-bindings/busio

shared-bindings/busio/I2C.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(busio_i2c___exit___obj, 4, 4, busio_i
114114
static void check_lock(busio_i2c_obj_t *self) {
115115
asm("");
116116
if (!common_hal_busio_i2c_has_lock(self)) {
117-
mp_raise_RuntimeError(translate("Function requires lock."));
117+
mp_raise_RuntimeError(translate("Function requires lock"));
118118
}
119119
}
120120

0 commit comments

Comments
 (0)