We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 739b42e + d6c59c4 commit ad98801Copy full SHA for ad98801
ports/mimxrt10xx/common-hal/busio/I2C.c
@@ -81,7 +81,7 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
81
}
82
83
if(self->sda_pin == NULL || self->scl_pin == NULL) {
84
- mp_raise_RuntimeError(translate("Invalid I2C pin selection"));
+ mp_raise_ValueError(translate("Invalid I2C pin selection"));
85
} else {
86
self->i2c = mcu_i2c_banks[self->sda_pin->bank_idx - 1];
87
0 commit comments