Skip to content

Commit 57de05c

Browse files
committed
Added in code to fix deepsleep underflow. Nullify event handler member variable.
1 parent cc4d8e6 commit 57de05c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

usb/device/targets/TARGET_NORDIC/TARGET_MCU_NRF52840/USBPhy_Nordic.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ void USBPhyHw::deinit()
137137
sleep_manager_unlock_deep_sleep();
138138
}
139139

140+
this->events = NULL;
141+
140142
// Clear the instance pointer
141143
instance = 0;
142144
}

0 commit comments

Comments
 (0)