Added in code to fix deepsleep underflow. Nullify event handler member variable.

pull/11023/head
George Beckstein 2019-03-15 21:23:18 -04:00 committed by Evelyne Donnaes
parent 655f3db0ca
commit 70703ec06c
1 changed files with 2 additions and 0 deletions

View File

@ -137,6 +137,8 @@ void USBPhyHw::deinit()
sleep_manager_unlock_deep_sleep(); sleep_manager_unlock_deep_sleep();
} }
this->events = NULL;
// Clear the instance pointer // Clear the instance pointer
instance = 0; instance = 0;
} }