summaryrefslogtreecommitdiff
path: root/ports/zephyr/mpconfigport.h
diff options
context:
space:
mode:
Diffstat (limited to 'ports/zephyr/mpconfigport.h')
-rw-r--r--ports/zephyr/mpconfigport.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/zephyr/mpconfigport.h b/ports/zephyr/mpconfigport.h
index 8d5d60ed2..7f8497348 100644
--- a/ports/zephyr/mpconfigport.h
+++ b/ports/zephyr/mpconfigport.h
@@ -84,9 +84,10 @@
#endif
#define MICROPY_PY_MACHINE_PWM (1)
#define MICROPY_PY_MACHINE_PWM_INCLUDEFILE "ports/zephyr/machine_pwm.c"
-#ifdef CONFIG_NETWORKING
-// If we have networking, we likely want errno comfort
+#if defined(CONFIG_NETWORKING) || defined(CONFIG_FILE_SYSTEM)
#define MICROPY_PY_ERRNO (1)
+#endif
+#ifdef CONFIG_NETWORKING
#define MICROPY_PY_SOCKET (1)
#endif
#ifdef CONFIG_BT