mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
xduoox3: Fix inverted test for USB power supply detection
Only affected status display, charging is handled entirely by hardware.
Introduced in f3026cd0 (2024-11-02)
Change-Id: I08c7c442fb3bddf18e5a0d33dac963c24d3c9182
This commit is contained in:
parent
d893da1929
commit
2c1d31fcd9
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@
|
|||
/* Detect which power sources are present. */
|
||||
unsigned int power_input_status(void)
|
||||
{
|
||||
return !__gpio_get_pin(PIN_USB_DET) ? POWER_INPUT_MAIN_CHARGER : POWER_INPUT_NONE;
|
||||
return __gpio_get_pin(PIN_USB_DET) ? POWER_INPUT_MAIN_CHARGER : POWER_INPUT_NONE;
|
||||
}
|
||||
|
||||
void power_init(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue