From 2c1f23820572e36a1d12597dff3261242fd6573c Mon Sep 17 00:00:00 2001 From: robert-hh Date: Thu, 7 Sep 2023 15:59:34 +0200 Subject: [PATCH] samd/mpconfigport: Set MICROPY_USE_INTERNAL_ERRNO to 1. Without this, error codes can be misleading. Signed-off-by: robert-hh --- ports/samd/mpconfigport.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/samd/mpconfigport.h b/ports/samd/mpconfigport.h index 801408ed47..91a7c1a10d 100644 --- a/ports/samd/mpconfigport.h +++ b/ports/samd/mpconfigport.h @@ -56,6 +56,7 @@ #define MICROPY_PY_BUILTINS_HELP (1) #define MICROPY_PY_BUILTINS_HELP_TEXT samd_help_text #define MICROPY_PY_BUILTINS_HELP_MODULES (1) +#define MICROPY_USE_INTERNAL_ERRNO (1) #define MICROPY_ENABLE_SCHEDULER (1) #define MICROPY_SCHEDULER_STATIC_NODES (1) #define MICROPY_HW_ENABLE_USBDEV (1)