Reformat the error message
This commit is contained in:
parent
d9f1b1f5b7
commit
9a2cda7fd3
|
@ -53,9 +53,9 @@ STATIC void scl_release(bitbangio_i2c_obj_t *self) {
|
||||||
for (; !common_hal_digitalio_digitalinout_get_value(&self->scl) && count; --count) {
|
for (; !common_hal_digitalio_digitalinout_get_value(&self->scl) && count; --count) {
|
||||||
common_hal_mcu_delay_us(1);
|
common_hal_mcu_delay_us(1);
|
||||||
}
|
}
|
||||||
if(count==0) { /// raise exception on timeout
|
// raise exception on timeout
|
||||||
mp_raise_msg(&mp_type_TimeoutError,
|
if (count == 0) {
|
||||||
"Clock Stretching Timeout.");
|
mp_raise_msg(&mp_type_TimeoutError, "Clock stretch too long");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue