diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-11-23 15:04:26 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-23 15:04:26 -0800 |
| commit | 491e3147994cfc92105b0b77b601d7a26734805b (patch) | |
| tree | 9bcf1af7cf0eca697aaf92b6e214568517a46e37 /py/pystack.c | |
| parent | c67f5892ffec4f279ccb4e10bc82ca4ca8679fab (diff) | |
| parent | 982bce7259a9bbf7493f86258fc3395f31081648 (diff) | |
Merge pull request #3718 from jepler/epd-rotation
EPaperDisplay: add rotation property
Diffstat (limited to 'py/pystack.c')
| -rw-r--r-- | py/pystack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/pystack.c b/py/pystack.c index f79ea9210..0def75b10 100644 --- a/py/pystack.c +++ b/py/pystack.c @@ -43,8 +43,8 @@ void *mp_pystack_alloc(size_t n_bytes) { #endif if (MP_STATE_THREAD(pystack_cur) + n_bytes > MP_STATE_THREAD(pystack_end)) { // out of memory in the pystack - nlr_raise(mp_obj_new_exception_arg1(&mp_type_RuntimeError, - MP_OBJ_NEW_QSTR(MP_QSTR_pystack_space_exhausted))); + mp_raise_arg1(&mp_type_RuntimeError, + MP_OBJ_NEW_QSTR(MP_QSTR_pystack_space_exhausted)); } void *ptr = MP_STATE_THREAD(pystack_cur); MP_STATE_THREAD(pystack_cur) += n_bytes; |
