diff options
author | Damien George <damien.p.george@gmail.com> | 2016-04-22 22:44:56 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-06-28 11:09:31 +0100 |
commit | 330165a2cc9a0d4d5d00f13f851412c25d5f4ed2 (patch) | |
tree | 51e3fb1500e57441899d914f85e69a8436bfe81b /py/modmicropython.c | |
parent | 3545ef8bb49d9ad02e85bd13f478072f8059c582 (diff) | |
download | micropython-330165a2cc9a0d4d5d00f13f851412c25d5f4ed2.tar.gz micropython-330165a2cc9a0d4d5d00f13f851412c25d5f4ed2.zip |
py: Add MP_STATE_THREAD to hold state specific to a given thread.
Diffstat (limited to 'py/modmicropython.c')
-rw-r--r-- | py/modmicropython.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modmicropython.c b/py/modmicropython.c index 1ff5e25bd0..805bda51d2 100644 --- a/py/modmicropython.c +++ b/py/modmicropython.c @@ -60,7 +60,7 @@ mp_obj_t mp_micropython_mem_info(size_t n_args, const mp_obj_t *args) { (mp_uint_t)m_get_total_bytes_allocated(), (mp_uint_t)m_get_current_bytes_allocated(), (mp_uint_t)m_get_peak_bytes_allocated()); #endif #if MICROPY_STACK_CHECK - mp_printf(&mp_plat_print, "stack: " UINT_FMT " out of " INT_FMT "\n", mp_stack_usage(), MP_STATE_VM(stack_limit)); + mp_printf(&mp_plat_print, "stack: " UINT_FMT " out of " INT_FMT "\n", mp_stack_usage(), MP_STATE_THREAD(stack_limit)); #else mp_printf(&mp_plat_print, "stack: " UINT_FMT "\n", mp_stack_usage()); #endif |