diff options
| author | arturo182 <arturo182@tlen.pl> | 2020-05-27 11:24:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-27 11:24:46 +0200 |
| commit | ad988013f0efded9bb1320edc7fa6d66a64f8ca1 (patch) | |
| tree | 2095c99b06c32c586494815dc1242abefccb1253 | |
| parent | 739b42e3e0cde489a5deadb945ad4e754fa75baf (diff) | |
| parent | d6c59c4de017dd0ee2ac7a185c4e21ed164e7416 (diff) | |
Merge pull request #2961 from arturo182/i2c-exception
mimxrt10xx: Change exception type to match other ports
| -rw-r--r-- | ports/mimxrt10xx/common-hal/busio/I2C.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/mimxrt10xx/common-hal/busio/I2C.c b/ports/mimxrt10xx/common-hal/busio/I2C.c index 0bb7dcc6c..cad0fef98 100644 --- a/ports/mimxrt10xx/common-hal/busio/I2C.c +++ b/ports/mimxrt10xx/common-hal/busio/I2C.c @@ -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]; } |
