summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-04-05 19:06:37 -0700
committerScott Shawcroft <scott@tannewt.org>2019-04-05 19:06:37 -0700
commit7686f93ef456aa46f538da3159d0e12cae9fa737 (patch)
treebdd9d98d82e09d9ea725284e9bb2eee2d71c2f41 /shared-bindings
parent8b9e93329d5b9c732954f0d8f1ba2c97819ad774 (diff)
Fix crash when getting board.SPI outside the VM
If one of the default pins was already in use it would crash. The internal API has been refined to allow us to get the value without causing an init of the singleton. Fixes #1753
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/digitalio/DigitalInOut.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared-bindings/digitalio/DigitalInOut.h b/shared-bindings/digitalio/DigitalInOut.h
index 2aaa31b7f..037979098 100644
--- a/shared-bindings/digitalio/DigitalInOut.h
+++ b/shared-bindings/digitalio/DigitalInOut.h
@@ -52,5 +52,6 @@ void common_hal_digitalio_digitalinout_set_drive_mode(digitalio_digitalinout_obj
digitalio_drive_mode_t common_hal_digitalio_digitalinout_get_drive_mode(digitalio_digitalinout_obj_t* self);
void common_hal_digitalio_digitalinout_set_pull(digitalio_digitalinout_obj_t* self, digitalio_pull_t pull);
digitalio_pull_t common_hal_digitalio_digitalinout_get_pull(digitalio_digitalinout_obj_t* self);
+void common_hal_digitalio_digitalinout_never_reset(digitalio_digitalinout_obj_t *self);
#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_DIGITALINOUT_H