From eee1d938068c45299f95040a57c330e6de4a3de4 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Mon, 5 Apr 2021 13:22:01 +1000 Subject: [PATCH] Update policy_engine_user.cpp --- source/Core/Drivers/FUSB302/policy_engine_user.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/Core/Drivers/FUSB302/policy_engine_user.cpp b/source/Core/Drivers/FUSB302/policy_engine_user.cpp index d587d1d4..4e052364 100644 --- a/source/Core/Drivers/FUSB302/policy_engine_user.cpp +++ b/source/Core/Drivers/FUSB302/policy_engine_user.cpp @@ -214,7 +214,6 @@ bool PolicyEngine::pdbs_dpm_evaluate_typec_current(enum fusb_typec_current tcc) } void PolicyEngine::pdbs_dpm_transition_default() { - /* Cast the dpm_data to the right type */ /* Pretend we requested 5 V */ current_voltage_mv = 5000; @@ -222,10 +221,7 @@ void PolicyEngine::pdbs_dpm_transition_default() { pdNegotiationComplete = false; } -void PolicyEngine::pdbs_dpm_transition_requested() { - /* Cast the dpm_data to the right type */ - pdNegotiationComplete = true; -} +void PolicyEngine::pdbs_dpm_transition_requested() { pdNegotiationComplete = true; } void PolicyEngine::handleMessage(union pd_msg *msg) { xQueueSend(messagesWaiting, msg, 100); }