summaryrefslogtreecommitdiff
path: root/shared-bindings/pulseio/PulseOut.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@adafruit.com>2019-06-13 08:29:12 -0400
committerGitHub <noreply@github.com>2019-06-13 08:29:12 -0400
commit6be7cf7440acb827d4b0f767b6083a859499b045 (patch)
tree55834cab63123bb95a2b7d329ff78442f34cfe6b /shared-bindings/pulseio/PulseOut.c
parenta06a97e2cba36233d229ba44c3acd9007affe1c9 (diff)
parent6f6dcafd906b2ac49291f4220f3fcc7cea6112e1 (diff)
Merge pull request #1940 from tannewt/dirty_area
Add partial display update support.
Diffstat (limited to 'shared-bindings/pulseio/PulseOut.c')
-rw-r--r--shared-bindings/pulseio/PulseOut.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shared-bindings/pulseio/PulseOut.c b/shared-bindings/pulseio/PulseOut.c
index 493b7e2ff..172459e5d 100644
--- a/shared-bindings/pulseio/PulseOut.c
+++ b/shared-bindings/pulseio/PulseOut.c
@@ -127,7 +127,9 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(pulseio_pulseout___exit___obj, 4, 4,
//|
STATIC mp_obj_t pulseio_pulseout_obj_send(mp_obj_t self_in, mp_obj_t pulses) {
pulseio_pulseout_obj_t *self = MP_OBJ_TO_PTR(self_in);
- raise_error_if_deinited(common_hal_pulseio_pulseout_deinited(self));
+ if (common_hal_pulseio_pulseout_deinited(self)) {
+ raise_deinited_error();
+ }
mp_buffer_info_t bufinfo;
mp_get_buffer_raise(pulses, &bufinfo, MP_BUFFER_READ);