diff options
| author | Damien George | 2016-05-10 23:22:54 +0100 |
|---|---|---|
| committer | Damien George | 2016-05-10 23:30:39 +0100 |
| commit | 5ab98d5c41bffa799a551a2731d904cab346898e (patch) | |
| tree | 3e69611c73314b7e7c374172a9118e76e4b43dce /stmhal/can.c | |
| parent | 088127d91cb593990cf4f04e64ca452671041e6f (diff) | |
stmhal: Convert to use internal errno symbols; enable uerrno module.
Diffstat (limited to 'stmhal/can.c')
| -rw-r--r-- | stmhal/can.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/can.c b/stmhal/can.c index 6d582d44f..262c487f6 100644 --- a/stmhal/can.c +++ b/stmhal/can.c @@ -27,12 +27,12 @@ #include <stdio.h> #include <string.h> #include <stdarg.h> -#include <errno.h> #include "py/nlr.h" #include "py/objtuple.h" #include "py/runtime.h" #include "py/gc.h" +#include "py/mperrno.h" #include "py/mphal.h" #include "bufhelper.h" #include "can.h" @@ -817,7 +817,7 @@ mp_uint_t can_ioctl(mp_obj_t self_in, mp_uint_t request, mp_uint_t arg, int *err ret |= MP_IOCTL_POLL_WR; } } else { - *errcode = EINVAL; + *errcode = MP_EINVAL; ret = -1; } return ret; |
