Fix warnings
This commit is contained in:
@@ -114,7 +114,6 @@ bool PolicyEngine::pdbs_dpm_evaluate_capability(
|
|||||||
/* Update requested voltage */
|
/* Update requested voltage */
|
||||||
_requested_voltage = 5000;
|
_requested_voltage = 5000;
|
||||||
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -186,6 +185,7 @@ void PolicyEngine::pdbs_dpm_get_sink_capability(union pd_msg *cap) {
|
|||||||
|
|
||||||
bool PolicyEngine::pdbs_dpm_evaluate_typec_current(
|
bool PolicyEngine::pdbs_dpm_evaluate_typec_current(
|
||||||
enum fusb_typec_current tcc) {
|
enum fusb_typec_current tcc) {
|
||||||
|
(void) tcc;
|
||||||
//This is for evaluating 5V static current advertised by resistors
|
//This is for evaluating 5V static current advertised by resistors
|
||||||
/* We don't control the voltage anymore; it will always be 5 V. */
|
/* We don't control the voltage anymore; it will always be 5 V. */
|
||||||
current_voltage_mv = _requested_voltage = 5000;
|
current_voltage_mv = _requested_voltage = 5000;
|
||||||
@@ -194,7 +194,6 @@ bool PolicyEngine::pdbs_dpm_evaluate_typec_current(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void PolicyEngine::pdbs_dpm_transition_default() {
|
void PolicyEngine::pdbs_dpm_transition_default() {
|
||||||
/* Cast the dpm_data to the right type */
|
/* Cast the dpm_data to the right type */
|
||||||
|
|
||||||
@@ -204,9 +203,6 @@ void PolicyEngine::pdbs_dpm_transition_default() {
|
|||||||
pdNegotiationComplete = false;
|
pdNegotiationComplete = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void PolicyEngine::pdbs_dpm_transition_requested() {
|
void PolicyEngine::pdbs_dpm_transition_requested() {
|
||||||
/* Cast the dpm_data to the right type */
|
/* Cast the dpm_data to the right type */
|
||||||
pdNegotiationComplete = true;
|
pdNegotiationComplete = true;
|
||||||
@@ -221,7 +217,7 @@ bool PolicyEngine::messageWaiting() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool PolicyEngine::readMessage() {
|
bool PolicyEngine::readMessage() {
|
||||||
return xQueueReceive(messagesWaiting, &tempMessage,0) == pdTRUE;
|
return xQueueReceive(messagesWaiting, &tempMessage, 0) == pdTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PolicyEngine::pdbs_dpm_transition_typec() {
|
void PolicyEngine::pdbs_dpm_transition_typec() {
|
||||||
|
|||||||
@@ -277,6 +277,7 @@ bool ProtocolTransmit::messagePending() {
|
|||||||
if (messagesWaiting) {
|
if (messagesWaiting) {
|
||||||
return uxQueueMessagesWaiting(messagesWaiting) > 0;
|
return uxQueueMessagesWaiting(messagesWaiting) > 0;
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProtocolTransmit::getMessage() {
|
void ProtocolTransmit::getMessage() {
|
||||||
@@ -293,4 +294,5 @@ ProtocolTransmit::Notifications ProtocolTransmit::waitForEvent(uint32_t mask,
|
|||||||
mask,
|
mask,
|
||||||
pdFALSE, ticksToWait);
|
pdFALSE, ticksToWait);
|
||||||
}
|
}
|
||||||
|
return (Notifications)0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user