Merge pull request #1693 from pewpew-game/typo2

Reuse existing error message in busio.i2c
This commit is contained in:
Dan Halbert 2019-03-24 23:44:25 -04:00 committed by GitHub
commit 705929a40a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"));
}
}