From 5724fd795ada17a62cea06fb1da69db9acf20550 Mon Sep 17 00:00:00 2001 From: jerryneedell Date: Sun, 10 Jun 2018 05:59:20 -0400 Subject: fix #918 Add stub for common_hal_pulseio_pulsein_get_paused to make ESP8266 build compatible with PR #901 --- ports/esp8266/common-hal/pulseio/PulseIn.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ports') diff --git a/ports/esp8266/common-hal/pulseio/PulseIn.c b/ports/esp8266/common-hal/pulseio/PulseIn.c index 783442b35..eb6fb7baa 100644 --- a/ports/esp8266/common-hal/pulseio/PulseIn.c +++ b/ports/esp8266/common-hal/pulseio/PulseIn.c @@ -62,6 +62,10 @@ uint16_t common_hal_pulseio_pulsein_get_maxlen(pulseio_pulsein_obj_t* self) { return 0; } +bool common_hal_pulseio_pulsein_get_paused(pulseio_pulsein_obj_t* self) { + return true; +} + uint16_t common_hal_pulseio_pulsein_get_len(pulseio_pulsein_obj_t* self) { return 0; } -- cgit v1.2.3 From 2129bbe160278f7cd2cece939f81900a41f8aa86 Mon Sep 17 00:00:00 2001 From: jerryneedell Date: Sun, 10 Jun 2018 07:08:56 -0400 Subject: Update PulseIn.c --- ports/esp8266/common-hal/pulseio/PulseIn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ports') diff --git a/ports/esp8266/common-hal/pulseio/PulseIn.c b/ports/esp8266/common-hal/pulseio/PulseIn.c index eb6fb7baa..5930daab2 100644 --- a/ports/esp8266/common-hal/pulseio/PulseIn.c +++ b/ports/esp8266/common-hal/pulseio/PulseIn.c @@ -63,7 +63,7 @@ uint16_t common_hal_pulseio_pulsein_get_maxlen(pulseio_pulsein_obj_t* self) { } bool common_hal_pulseio_pulsein_get_paused(pulseio_pulsein_obj_t* self) { - return true; + return false; } uint16_t common_hal_pulseio_pulsein_get_len(pulseio_pulsein_obj_t* self) { -- cgit v1.2.3