summaryrefslogtreecommitdiff
path: root/shared-module/os
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2019-09-13 09:33:36 -0700
committerGitHub <noreply@github.com>2019-09-13 09:33:36 -0700
commit157429f20de8ed6828941c98b9c90c4a1b587c76 (patch)
treea3853967292673994e13db1f604818eaafa1e966 /shared-module/os
parent3422e53bd12025d584e7d69f67ea63b9e98f9c36 (diff)
parent523025ce8c96e8526e93a051436f24877e65f4a6 (diff)
Merge pull request #2135 from jepler/audio-stuttering-background5.0.0-alpha.3
Reduce audio stuttering by running background tasks
Diffstat (limited to 'shared-module/os')
-rw-r--r--shared-module/os/__init__.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared-module/os/__init__.c b/shared-module/os/__init__.c
index 313893d97..8060eec4f 100644
--- a/shared-module/os/__init__.c
+++ b/shared-module/os/__init__.c
@@ -128,6 +128,7 @@ mp_obj_t common_hal_os_listdir(const char* path) {
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));
+ RUN_BACKGROUND_TASKS;
}
return dir_list;
}