We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9f1b1f commit 9a2cda7Copy full SHA for 9a2cda7
1 file changed
shared-module/bitbangio/I2C.c
@@ -53,9 +53,9 @@ STATIC void scl_release(bitbangio_i2c_obj_t *self) {
53
for (; !common_hal_digitalio_digitalinout_get_value(&self->scl) && count; --count) {
54
common_hal_mcu_delay_us(1);
55
}
56
- if(count==0) { /// raise exception on timeout
57
- mp_raise_msg(&mp_type_TimeoutError,
58
- "Clock Stretching Timeout.");
+ // raise exception on timeout
+ if (count == 0) {
+ mp_raise_msg(&mp_type_TimeoutError, "Clock stretch too long");
59
60
61
0 commit comments