We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ec90d79 + 3c93594 commit 1af2b6aCopy full SHA for 1af2b6a
1 file changed
shared-module/displayio/I2CDisplay.c
@@ -54,6 +54,7 @@ void common_hal_displayio_i2cdisplay_construct(displayio_i2cdisplay_obj_t *self,
54
// Probe the bus to see if a device acknowledges the given address.
55
if (!common_hal_busio_i2c_probe(i2c, device_address)) {
56
self->base.type = &mp_type_NoneType;
57
+ common_hal_displayio_i2cdisplay_deinit(self);
58
mp_raise_ValueError_varg(translate("Unable to find I2C Display at %x"), device_address);
59
}
60
0 commit comments