From ef95d18d06f81de661ab966d9ec81422c0c94b00 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Tue, 20 Sep 2022 20:02:02 +1000 Subject: [PATCH] Updated Build Troubleshooting (markdown) --- Build-Troubleshooting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build-Troubleshooting.md b/Build-Troubleshooting.md index 1c7d1fb..02ce469 100644 --- a/Build-Troubleshooting.md +++ b/Build-Troubleshooting.md @@ -91,7 +91,7 @@ If you see errors about `getiter` and/or `iternext` then also see #8813. In order to save space, the `getiter` and `iternext` slots were merged on `mp_obj_type_t` into a single new slot `iter`. The following changes need to be made to your object type definitions. -- If you previously had just a `getiter`, then change `getiter` to `iter` and set the `MP_TYPE_FLAG_ITER_IS_ITERNEXT`. +- If you previously had just a `getiter`, then change `getiter` to `iter` and set the `MP_TYPE_FLAG_ITER_IS_GETITER`. - If you had `getiter` as `mp_identity_getiter` and a custom `iternext`, then pass your iternext function to the `iter` slot, and set the `MP_TYPE_FLAG_ITER_IS_ITERNEXT` flag. - If you had `getiter` as `mp_identity_getiter` and `mp_stream_unbuffered_iter` as `iternext`, then just set the `MP_TYPE_FLAG_ITER_IS_STREAM` and do not set the `iter` slot. - If you had both a custom getiter and iternext, then you need to pass an instance of a `mp_getiter_iternext_custom_t` to the `iter` slot and set the `MP_TYPE_FLAG_ITER_IS_CUSTOM` flag. See [moduasyncio.c](https://github.com/micropython/micropython/blob/master/extmod/moduasyncio.c).