diff options
| author | Daniel Campora | 2015-09-26 22:55:24 +0200 |
|---|---|---|
| committer | Daniel Campora | 2015-09-27 01:50:52 +0200 |
| commit | 57fa14b5be08736b37f1629475e47c92556c0629 (patch) | |
| tree | 9fccfb516deb85fa68be56cb416ab2e0cd71ec97 /cc3200/mods/pybuart.c | |
| parent | dbdcb58d6413a907e5f4aed25eee85073ff7e575 (diff) | |
cc3200: New WLAN API including test.
Diffstat (limited to 'cc3200/mods/pybuart.c')
| -rw-r--r-- | cc3200/mods/pybuart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc3200/mods/pybuart.c b/cc3200/mods/pybuart.c index fca534458..213000975 100644 --- a/cc3200/mods/pybuart.c +++ b/cc3200/mods/pybuart.c @@ -446,7 +446,7 @@ error: } STATIC const mp_arg_t pyb_uart_init_args[] = { - { MP_QSTR_id, MP_ARG_OBJ, {.u_obj = mp_const_none} }, + { MP_QSTR_id, MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, { MP_QSTR_baudrate, MP_ARG_INT, {.u_int = 9600} }, { MP_QSTR_bits, MP_ARG_INT, {.u_int = 8} }, { MP_QSTR_parity, MP_ARG_OBJ, {.u_obj = mp_const_none} }, @@ -462,7 +462,7 @@ STATIC mp_obj_t pyb_uart_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t // work out the uart id uint uart_id; - if (args[0].u_obj == mp_const_none) { + if (args[0].u_obj == MP_OBJ_NULL) { if (args[5].u_obj != MP_OBJ_NULL) { mp_obj_t *pins; mp_uint_t n_pins = 2; |
