diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2018-06-08 14:57:20 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2018-06-08 14:57:20 -0700 |
| commit | 8fb34a584664c800a4ea4d2d4c351c822bb03a98 (patch) | |
| tree | f078676ec49b245ad4c67a80b817451b20f29a69 /ports | |
| parent | 8195df1b550522e4da32319d73b88702f638d6fe (diff) | |
Use bool not int.
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/atmel-samd/common-hal/pulseio/PulseIn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/atmel-samd/common-hal/pulseio/PulseIn.c b/ports/atmel-samd/common-hal/pulseio/PulseIn.c index dee32bbec..d16bbf9d2 100644 --- a/ports/atmel-samd/common-hal/pulseio/PulseIn.c +++ b/ports/atmel-samd/common-hal/pulseio/PulseIn.c @@ -125,7 +125,7 @@ void common_hal_pulseio_pulsein_construct(pulseio_pulsein_obj_t* self, self->first_edge = true; self->last_us = 0; self->last_ms = 0; - self->errored_too_fast = 0; + self->errored_too_fast = false; set_eic_channel_data(pin->extint_channel, (void*) self); |
