forked from len0rd/rockbox
Wrong polarity for player USB check
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1258 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
65c42d56ac
commit
43eda43c20
1 changed files with 3 additions and 3 deletions
|
@ -78,12 +78,12 @@ static void usb_thread(void)
|
||||||
|
|
||||||
static void usb_tick(void)
|
static void usb_tick(void)
|
||||||
{
|
{
|
||||||
int current_status;
|
bool current_status;
|
||||||
|
|
||||||
#ifdef ARCHOS_RECORDER
|
#ifdef ARCHOS_RECORDER
|
||||||
current_status = PCDR & 0x04;
|
current_status = (PCDR & 0x04)?true:false;
|
||||||
#else
|
#else
|
||||||
current_status = PADR & 0x8000;
|
current_status = (PADR & 0x8000)?false:true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(current_status && !usb_connected)
|
if(current_status && !usb_connected)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue