Skip to content

Commit

Permalink
tps65987: improve comments
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Kopeć <[email protected]>
  • Loading branch information
mkopec committed Dec 6, 2023
1 parent a862f7d commit 818ad73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/board/system76/common/usbpd/tps65987.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,8 @@ static void usbpd_configure(void) {
// Clear dead battery flag
usbpd_send_cmd("DBfg", NULL, 0);

// Select switch PP3
// System ready to sink power via PP3
path = 2;
// System ready to sink power
usbpd_send_cmd("SRDY", &path, 1);

res = i2c_get(&I2C_USBPD, USBPD_ADDRESS, REG_GLOBAL_CONFIGURATION, reg, sizeof(reg));
Expand Down Expand Up @@ -279,7 +278,7 @@ void usbpd_disable_charging(void) {

void usbpd_enable_charging(void) {
DEBUG("USBPD ENABLE CHARGING\n");
// Select switch PP3
// System ready to sink power via PP3
uint8_t path = 2;
usbpd_send_cmd("SRDY", &path, 1);
}
Expand Down

0 comments on commit 818ad73

Please sign in to comment.