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:
Solomon Peachy 2025-02-10 14:30:05 -05:00
parent d893da1929
commit 2c1d31fcd9

View file

@ -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)