forked from len0rd/rockbox
imx233: fix power_input_status()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31499 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
568c441fd8
commit
84127c9f69
1 changed files with 2 additions and 1 deletions
|
|
@ -23,6 +23,7 @@
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "power.h"
|
#include "power.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
|
#include "usb.h"
|
||||||
#include "system-target.h"
|
#include "system-target.h"
|
||||||
|
|
||||||
struct current_step_bit_t
|
struct current_step_bit_t
|
||||||
|
|
@ -111,7 +112,7 @@ void power_off(void)
|
||||||
|
|
||||||
unsigned int power_input_status(void)
|
unsigned int power_input_status(void)
|
||||||
{
|
{
|
||||||
return (usb_detect == USB_INSERTED)
|
return (usb_detect() == USB_INSERTED)
|
||||||
? POWER_INPUT_MAIN_CHARGER : POWER_INPUT_NONE;
|
? POWER_INPUT_MAIN_CHARGER : POWER_INPUT_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue