Skip to content

Commit 076cbcc

Browse files
committed
cicuitpy_mpconfg.h: Define RUN_BACKGROUND_TASKS
In adafruit#2013, @danh says: My choice of where to put the semicolon is deliberate, so that we can say RUN_BACKGROUND_TASKS; not have a redundant semicolon, and not confuse C code formatting.
1 parent 568dfc7 commit 076cbcc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

py/circuitpy_mpconfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ extern const struct _mp_obj_module_t ustack_module;
653653
NETWORK_ROOT_POINTERS \
654654

655655
void run_background_tasks(void);
656+
#define RUN_BACKGROUND_TASKS (run_background_tasks())
656657

657658
// TODO: Used in wiznet5k driver, but may not be needed in the long run.
658659
#define MICROPY_THREAD_YIELD()

0 commit comments

Comments
 (0)