|
Lamp-Da 0.1
A compact lantern project
|
#include <input_power_policy.h>
Follows a VBUS loss, to decide when it is an unplug. A hard reset seen during the loss keeps the hard reset grace until VBUS is valid again: the state machine can leave the hard reset states before VBUS is back over our threshold, and that is not an unplug. The deadline is always counted from the original VBUS loss, so no PD state change can extend it (issue #642).