Skip to content

Commit

Permalink
Merge pull request adafruit#2961 from arturo182/i2c-exception
Browse files Browse the repository at this point in the history
mimxrt10xx: Change exception type to match other ports
  • Loading branch information
arturo182 authored May 27, 2020
2 parents 739b42e + d6c59c4 commit ad98801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/mimxrt10xx/common-hal/busio/I2C.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit ad98801

Please sign in to comment.