mimxrt10xx: Change exception type to match other ports

This commit is contained in:
arturo182 2020-05-26 22:36:30 +02:00
parent 19f0d82048
commit d6c59c4de0
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
}
if(self->sda_pin == NULL || self->scl_pin == NULL) {
mp_raise_RuntimeError(translate("Invalid I2C pin selection"));
mp_raise_ValueError(translate("Invalid I2C pin selection"));
} else {
self->i2c = mcu_i2c_banks[self->sda_pin->bank_idx - 1];
}