summaryrefslogtreecommitdiff
path: root/ports/esp32/esp32_partition.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-12-16 15:40:05 +1100
committerDamien George <damien.p.george@gmail.com>2019-12-27 22:51:17 +1100
commit09376f0e47b3ab4a5a2a3c2c768ff913e1835cc8 (patch)
tree4fd6399e318c977b3ddd20c13659f176b70f3f5b /ports/esp32/esp32_partition.c
parentf5eec903fa961135296e2656821450979e413248 (diff)
py: Introduce MP_ROM_NONE macro for ROM to refer to None object.
This helps to prevent mistakes, and allows easily changing the ROM value of None if needed.
Diffstat (limited to 'ports/esp32/esp32_partition.c')
-rw-r--r--ports/esp32/esp32_partition.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/esp32_partition.c b/ports/esp32/esp32_partition.c
index e5bd31af0..50c2173cc 100644
--- a/ports/esp32/esp32_partition.c
+++ b/ports/esp32/esp32_partition.c
@@ -109,7 +109,7 @@ STATIC mp_obj_t esp32_partition_find(size_t n_args, const mp_obj_t *pos_args, mp
static const mp_arg_t allowed_args[] = {
{ MP_QSTR_type, MP_ARG_INT, {.u_int = ESP_PARTITION_TYPE_APP} },
{ MP_QSTR_subtype, MP_ARG_INT, {.u_int = ESP_PARTITION_SUBTYPE_ANY} },
- { MP_QSTR_label, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_PTR(&mp_const_none_obj)} },
+ { MP_QSTR_label, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_NONE} },
};
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);