mimxrt10xx: Change exception type to match other ports
This commit is contained in:
parent
19f0d82048
commit
d6c59c4de0
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue