diff options
author | Paul Selkirk <paul@psgd.org> | 2017-04-25 22:14:49 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2017-04-25 22:14:49 -0400 |
commit | 18c297c5f88681236aec2537f7e7f2d9b50fcd7e (patch) | |
tree | 7dbbfa8c1f144e8c30cff8084f69f9efe47df217 /hal_io_fmc.c | |
parent | 22a58216681df01d20cfa0a5cfc5c49d15e6c606 (diff) |
adapt to the new experimental tasking system
Diffstat (limited to 'hal_io_fmc.c')
-rw-r--r-- | hal_io_fmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hal_io_fmc.c b/hal_io_fmc.c index 7aa4b19..76d6883 100644 --- a/hal_io_fmc.c +++ b/hal_io_fmc.c @@ -159,6 +159,8 @@ hal_error_t hal_io_wait(const hal_core_t *core, uint8_t status, int *count) if (count && (*count > 0) && (i >= *count)) return HAL_ERROR_IO_TIMEOUT; + hal_task_yield(); + if ((err = hal_io_read(core, ADDR_STATUS, buf, sizeof(buf))) != HAL_OK) return err; |