diff options
Diffstat (limited to 'unix/mphalport.h')
-rw-r--r-- | unix/mphalport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/mphalport.h b/unix/mphalport.h index 2a775d9828..e440eafd4e 100644 --- a/unix/mphalport.h +++ b/unix/mphalport.h @@ -39,4 +39,4 @@ static inline void mp_hal_delay_us(mp_uint_t us) { usleep(us); } #define RAISE_ERRNO(err_flag, error_val) \ { if (err_flag == -1) \ - { nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(error_val))); } } + { mp_raise_OSError(error_val); } } |