diff options
Diffstat (limited to 'firmware/target/arm/philips/sa9200/power-sa9200.c')
-rw-r--r-- | firmware/target/arm/philips/sa9200/power-sa9200.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/philips/sa9200/power-sa9200.c b/firmware/target/arm/philips/sa9200/power-sa9200.c index 5da1fc5fc4..e0bdfcf8ea 100644 --- a/firmware/target/arm/philips/sa9200/power-sa9200.c +++ b/firmware/target/arm/philips/sa9200/power-sa9200.c | |||
@@ -97,7 +97,7 @@ unsigned int power_input_status(void) | |||
97 | /* GPIOF indicates that the connector is present, | 97 | /* GPIOF indicates that the connector is present, |
98 | GPIOB indicates that there's power there too. | 98 | GPIOB indicates that there's power there too. |
99 | Same status bits for both USB and the charger. */ | 99 | Same status bits for both USB and the charger. */ |
100 | if (!(GPIOF_INPUT_VAL & 0x80) && !(GPIOB_INPUT_VAL & 0x80)) | 100 | if (!(GPIOF_INPUT_VAL & 0x80) && (GPIOB_INPUT_VAL & 0x40)) |
101 | status = POWER_INPUT_MAIN_CHARGER; | 101 | status = POWER_INPUT_MAIN_CHARGER; |
102 | 102 | ||
103 | return status; | 103 | return status; |