Skip to content

Commit da6869d

Browse files
committed
Set MICROPY_PY_UERRNO_ERRORCODE correctly
1 parent 0ba49d7 commit da6869d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

py/circuitpy_mpconfig.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@ typedef long mp_off_t;
198198
#ifndef MICROPY_PY_COLLECTIONS_ORDEREDDICT
199199
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (CIRCUITPY_FULL_BUILD)
200200
#endif
201-
// Opposite setting is deliberate.
202-
#define MICROPY_PY_UERRNO_ERRORCODE (!CIRCUITPY_FULL_BUILD)
203201
#define MICROPY_PY_URE_MATCH_GROUPS (CIRCUITPY_RE)
204202
#define MICROPY_PY_URE_MATCH_SPAN_START_END (CIRCUITPY_RE)
205203
#define MICROPY_PY_URE_SUB (CIRCUITPY_RE)
@@ -401,9 +399,12 @@ extern const struct _mp_obj_module_t terminalio_module;
401399

402400
#if CIRCUITPY_ERRNO
403401
#define MICROPY_PY_UERRNO (1)
402+
// Uses about 80 bytes.
403+
#define MICROPY_PY_UERRNO_ERRORCODE (1)
404404
#define ERRNO_MODULE { MP_ROM_QSTR(MP_QSTR_errno), MP_ROM_PTR(&mp_module_uerrno) },
405405
#else
406406
#define ERRNO_MODULE
407+
#
407408
#endif
408409

409410
#if CIRCUITPY_ESPIDF

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy