diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-10-22 17:24:04 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-10-22 17:24:04 -0700 |
| commit | ece8352126e34c5437080e9343f469f2f5e1bfe9 (patch) | |
| tree | 45e56fd7802a6e2810ce5d02940c7ff7813cc05b /shared-module/_bleio | |
| parent | aeee15eae8dc83f2947ac57ca868e439a15bf84b (diff) | |
Fix build by removing unused vars
Diffstat (limited to 'shared-module/_bleio')
| -rw-r--r-- | shared-module/_bleio/ScanResults.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shared-module/_bleio/ScanResults.c b/shared-module/_bleio/ScanResults.c index 9f23a836c..7ea0c165f 100644 --- a/shared-module/_bleio/ScanResults.c +++ b/shared-module/_bleio/ScanResults.c @@ -28,6 +28,7 @@ #include <string.h> +#include "lib/utils/interrupt_char.h" #include "py/objstr.h" #include "py/runtime.h" #include "shared-bindings/_bleio/ScanEntry.h" @@ -44,10 +45,10 @@ bleio_scanresults_obj_t* shared_module_bleio_new_scanresults(size_t buffer_size, } mp_obj_t common_hal_bleio_scanresults_next(bleio_scanresults_obj_t *self) { - while (ringbuf_count(&self->buf) == 0 && !self->done && !mp_exception_pending()) { + while (ringbuf_count(&self->buf) == 0 && !self->done && !mp_hal_is_interrupted()) { RUN_BACKGROUND_TASKS; } - if (ringbuf_count(&self->buf) == 0 || mp_exception_pending()) { + if (ringbuf_count(&self->buf) == 0 || mp_hal_is_interrupted()) { return mp_const_none; } |
