diff options
author | David Lechner <david@pybricks.com> | 2019-06-02 15:57:27 -0500 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-06-24 23:14:01 +1000 |
commit | b51ae20c0714ea987ac0988c5d02b59e08048632 (patch) | |
tree | 10ea5bf837c88d80c04fe9b941d52ff4aac2c0ed /py/mperrno.h | |
parent | cb332ddae8075001a1a9e6af0fa8aa191602dee8 (diff) |
py/mperrno: Add MP_ECANCELED error code.
This is useful when binding asynchronous functions in C.
Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'py/mperrno.h')
-rw-r--r-- | py/mperrno.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/mperrno.h b/py/mperrno.h index 0cad75a17..6f6d816b8 100644 --- a/py/mperrno.h +++ b/py/mperrno.h @@ -81,6 +81,7 @@ #define MP_EHOSTUNREACH (113) // No route to host #define MP_EALREADY (114) // Operation already in progress #define MP_EINPROGRESS (115) // Operation now in progress +#define MP_ECANCELED (125) // Operation canceled #else @@ -136,6 +137,7 @@ #define MP_EHOSTUNREACH EHOSTUNREACH #define MP_EALREADY EALREADY #define MP_EINPROGRESS EINPROGRESS +#define MP_ECANCELED ECANCELED #endif |