Reformat the error message

This commit is contained in:
Scott Shawcroft 2018-05-16 13:19:51 -05:00 committed by GitHub
parent d9f1b1f5b7
commit 9a2cda7fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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");
} }
} }