diff options
| author | microDev <70126934+microDev1@users.noreply.github.com> | 2020-12-28 20:04:00 +0530 |
|---|---|---|
| committer | microDev <70126934+microDev1@users.noreply.github.com> | 2020-12-28 20:04:00 +0530 |
| commit | dc332baa87bf1fa3d777ffe31c7dc29b24a6a142 (patch) | |
| tree | 262e8ee4cfd6a1e4895d3fd97695ff87a41f61ca /ports/nrf | |
| parent | 1b7fbaf31eb84ce718fc715dc09a32b010eac9b5 (diff) | |
update common_hal_reset_pin()
Diffstat (limited to 'ports/nrf')
| -rw-r--r-- | ports/nrf/common-hal/microcontroller/Pin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/nrf/common-hal/microcontroller/Pin.c b/ports/nrf/common-hal/microcontroller/Pin.c index bc7ff831a..23d6e23bf 100644 --- a/ports/nrf/common-hal/microcontroller/Pin.c +++ b/ports/nrf/common-hal/microcontroller/Pin.c @@ -134,6 +134,9 @@ void common_hal_never_reset_pin(const mcu_pin_obj_t* pin) { } void common_hal_reset_pin(const mcu_pin_obj_t* pin) { + if (pin == NULL) { + return; + } reset_pin_number(pin->number); } |
