Skip to content

Commit 45d1b29

Browse files
committed
circuitpy_mpconfig.h: Express HOOKS in terms of RUN_BACKGROUND_TASKS
.. this means that when we want to modify RUN_BACKGROUND_TASKS, only one change is needed instead of 3
1 parent acde22a commit 45d1b29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/circuitpy_mpconfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,8 @@ void run_background_tasks(void);
658658
// TODO: Used in wiznet5k driver, but may not be needed in the long run.
659659
#define MICROPY_THREAD_YIELD()
660660

661-
#define MICROPY_VM_HOOK_LOOP run_background_tasks();
662-
#define MICROPY_VM_HOOK_RETURN run_background_tasks();
661+
#define MICROPY_VM_HOOK_LOOP RUN_BACKGROUND_TASKS;
662+
#define MICROPY_VM_HOOK_RETURN RUN_BACKGROUND_TASKS;
663663

664664
#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
665665
#define CIRCUITPY_FILESYSTEM_FLUSH_INTERVAL_MS 1000

0 commit comments

Comments
 (0)