diff options
| author | arturo182 <arturo182@tlen.pl> | 2020-05-26 22:36:30 +0200 |
|---|---|---|
| committer | arturo182 <arturo182@tlen.pl> | 2020-05-26 22:36:30 +0200 |
| commit | d6c59c4de017dd0ee2ac7a185c4e21ed164e7416 (patch) | |
| tree | 124be235e0a3d39db4790d2c77b909d0691b2307 | |
| parent | 19f0d82048560e861df598190c642095307f21b2 (diff) | |
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]; } |
