Skip to content

Commit

Permalink
[SY6970] Fix ADC Measure
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Oct 30, 2024
1 parent 34f1707 commit 5904737
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/PowersSY6970.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,8 @@ public:
case BUS_STATE_HVDCP:
return "HVDCP";
case BUS_STATE_ADAPTER:
return "Adapter";
case BUS_STATE_NO_STANDARD_ADAPTER:
return "Non-Standard Adapter";
return "Adapter";
case BUS_STATE_OTG:
return "OTG";
default:
Expand Down Expand Up @@ -522,10 +521,10 @@ public:
{
int val = readRegister(POWERS_PPM_REG_02H);
switch (mode) {
case ONE_SHORT:
case CONTINUOUS:
val |= _BV(6);
break;
case CONTINUOUS:
case ONE_SHORT:
val &= (~_BV(6));
default:
break;
Expand Down

0 comments on commit 5904737

Please sign in to comment.