We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6c2694 commit aa93097Copy full SHA for aa93097
shared-module/bitbangio/I2C.c
@@ -28,6 +28,7 @@
28
#include "py/mperrno.h"
29
#include "py/nlr.h"
30
#include "py/obj.h"
31
+#include "py/runtime.h"
32
33
#include "common-hal/microcontroller/Pin.h"
34
#include "shared-bindings/microcontroller/__init__.h"
@@ -54,8 +55,8 @@ STATIC void scl_release(bitbangio_i2c_obj_t *self) {
54
55
common_hal_mcu_delay_us(1);
56
}
57
if(count==0) { /// raise exception on timeout
- nlr_raise(mp_obj_new_exception_msg(&mp_type_TimeoutError,
58
- "Clock Stretching Timeout."));
+ mp_raise_msg(&mp_type_TimeoutError,
59
+ "Clock Stretching Timeout.");
60
61
62
0 commit comments