Merge pull request #1983 from tannewt/fix_group_subscr_delete

Fix Group subscr to detect delete correctly
This commit is contained in:
Scott Shawcroft 2019-07-03 09:47:34 -07:00 committed by GitHub
commit 69460b943b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ STATIC mp_obj_t group_subscr(mp_obj_t self_in, mp_obj_t index_obj, mp_obj_t valu
if (value == MP_OBJ_SENTINEL) {
// load
return common_hal_displayio_group_get(self, index);
} else if (value == mp_const_none) {
} else if (value == MP_OBJ_NULL) {
common_hal_displayio_group_pop(self, index);
} else {
common_hal_displayio_group_set(self, index, value);