Skip to content

Commit 9a2cda7

Browse files
authored
Reformat the error message
1 parent d9f1b1f commit 9a2cda7

File tree

1 file changed

+3
-3
lines changed
  • shared-module/bitbangio

1 file changed

+3
-3
lines changed

shared-module/bitbangio/I2C.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ STATIC void scl_release(bitbangio_i2c_obj_t *self) {
5353
for (; !common_hal_digitalio_digitalinout_get_value(&self->scl) && count; --count) {
5454
common_hal_mcu_delay_us(1);
5555
}
56-
if(count==0) { /// raise exception on timeout
57-
mp_raise_msg(&mp_type_TimeoutError,
58-
"Clock Stretching Timeout.");
56+
// raise exception on timeout
57+
if (count == 0) {
58+
mp_raise_msg(&mp_type_TimeoutError, "Clock stretch too long");
5959
}
6060
}
6161

0 commit comments

Comments
 (0)