diff options
-rw-r--r-- | driver/bc12/max14637.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/bc12/max14637.c b/driver/bc12/max14637.c index 36b80bb624..c8a29c4a41 100644 --- a/driver/bc12/max14637.c +++ b/driver/bc12/max14637.c @@ -137,7 +137,7 @@ static void detect_or_power_down_ic(const int port) /* Turn on the 5V rail to allow the chip to be powered. */ power_5v_enable(task_get_current(), 1); #endif - if (pd_get_power_role(port) == PD_ROLE_SINK) + if (pd_get_role(port) == PD_ROLE_SINK) bc12_detect(port); } else { /* Let charge manager know there's no more charge available. */ |