1
0
forked from me/IronOS

Update policy_engine.h

This commit is contained in:
Ben V. Brown
2021-04-05 13:21:55 +10:00
parent 2332b4e835
commit f8e9c3b0d4

View File

@@ -43,7 +43,11 @@ public:
return false;
}
// Has pd negotiation completed
static bool pdHasNegotiated() { return pdNegotiationComplete; }
static bool pdHasNegotiated() {
if (state == policy_engine_state::PESinkSourceUnresponsive)
return false;
return true;
}
// Call this periodically, at least once every second
static void PPSTimerCallback();