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:
parent
cb332ddae8
commit
b51ae20c07
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user