summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorRoy Hooper <rhooper@toybox.ca>2019-12-13 14:29:15 -0500
committerRoy Hooper <rhooper@toybox.ca>2019-12-13 14:29:15 -0500
commitdc8dd6df20f4904917169f4ec1172c8f3827e822 (patch)
treef049a58666bec6ebc5b35170ee78e27e9636ad48 /shared-module
parent15072c69c9e940fa5cb0239fc821d2c0353f918e (diff)
Revert subscr signature change
Diffstat (limited to 'shared-module')
-rw-r--r--shared-module/os/__init__.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/os/__init__.c b/shared-module/os/__init__.c
index ad76251c8..8060eec4f 100644
--- a/shared-module/os/__init__.c
+++ b/shared-module/os/__init__.c
@@ -127,7 +127,7 @@ mp_obj_t common_hal_os_listdir(const char* path) {
mp_obj_t next;
while ((next = mp_iternext(iter_obj)) != MP_OBJ_STOP_ITERATION) {
// next[0] is the filename.
- mp_obj_list_append(dir_list, mp_obj_subscr(next, MP_OBJ_NEW_SMALL_INT(0), MP_OBJ_SENTINEL, dir_list));
+ mp_obj_list_append(dir_list, mp_obj_subscr(next, MP_OBJ_NEW_SMALL_INT(0), MP_OBJ_SENTINEL));
RUN_BACKGROUND_TASKS;
}
return dir_list;