1
0
forked from me/IronOS

Cosmetic fixes2

This commit is contained in:
Varga Zsolt
2021-06-07 14:55:30 +02:00
parent 54a28b47fe
commit b3f987d34a

View File

@@ -619,16 +619,16 @@ void PolicyEngine::PPSTimerCallback() {
}
bool PolicyEngine::NegotiationTimeoutReached(uint8_t timeout) {
if (timeout == 0){
return false;
}
if (xTaskGetTickCount() > (TICKS_100MS * timeout)) {
state = PESinkSourceUnresponsive;
return true;
}
if (timeout == 0){
return false;
}
if (xTaskGetTickCount() > (TICKS_100MS * timeout)) {
state = PESinkSourceUnresponsive;
return true;
}
return false;
}
EventBits_t PolicyEngine::pushMessage(union pd_msg *msg) {