Update policy_engine_user.cpp
This commit is contained in:
@@ -214,7 +214,6 @@ bool PolicyEngine::pdbs_dpm_evaluate_typec_current(enum fusb_typec_current tcc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void PolicyEngine::pdbs_dpm_transition_default() {
|
void PolicyEngine::pdbs_dpm_transition_default() {
|
||||||
/* Cast the dpm_data to the right type */
|
|
||||||
|
|
||||||
/* Pretend we requested 5 V */
|
/* Pretend we requested 5 V */
|
||||||
current_voltage_mv = 5000;
|
current_voltage_mv = 5000;
|
||||||
@@ -222,10 +221,7 @@ void PolicyEngine::pdbs_dpm_transition_default() {
|
|||||||
pdNegotiationComplete = false;
|
pdNegotiationComplete = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PolicyEngine::pdbs_dpm_transition_requested() {
|
void PolicyEngine::pdbs_dpm_transition_requested() { pdNegotiationComplete = true; }
|
||||||
/* Cast the dpm_data to the right type */
|
|
||||||
pdNegotiationComplete = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void PolicyEngine::handleMessage(union pd_msg *msg) { xQueueSend(messagesWaiting, msg, 100); }
|
void PolicyEngine::handleMessage(union pd_msg *msg) { xQueueSend(messagesWaiting, msg, 100); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user