diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-09-10 11:20:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-10 11:20:44 -0700 |
| commit | 683462c1b15055e20da55c40243e314d660f803a (patch) | |
| tree | c7b527d041f67e4be31e48d7872ff6b75a585c66 /py/runtime.c | |
| parent | af742b9ba7baad02113370cdab5eab606bdafccf (diff) | |
| parent | f3fc7c1c72b4119112c198cfc22fb1799d9f566c (diff) | |
Merge pull request #3326 from tannewt/native_wifi
Add native wifi API with ESP32S2 support
Diffstat (limited to 'py/runtime.c')
| -rw-r--r-- | py/runtime.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c index f9ef7819d..e63e2337d 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -1602,6 +1602,14 @@ NORETURN void mp_raise_OSError_msg_varg(const compressed_string_t *fmt, ...) { va_end(argptr); } +NORETURN void mp_raise_ConnectionError(const compressed_string_t *msg) { + mp_raise_msg(&mp_type_ConnectionError, msg); +} + +NORETURN void mp_raise_BrokenPipeError(void) { + nlr_raise(mp_obj_new_exception_arg1(&mp_type_BrokenPipeError, MP_OBJ_NEW_SMALL_INT(MP_EPIPE))); +} + NORETURN void mp_raise_NotImplementedError(const compressed_string_t *msg) { mp_raise_msg(&mp_type_NotImplementedError, msg); } |
