py/mperrno: Add MP_ECANCELED error code.

This is useful when binding asynchronous functions in C.

Signed-off-by: David Lechner <david@pybricks.com>
This commit is contained in:
David Lechner 2019-06-02 15:57:27 -05:00 committed by Damien George
parent cb332ddae8
commit b51ae20c07
1 changed files with 2 additions and 0 deletions

View File

@ -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