diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-29 22:59:12 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-29 22:59:12 +0000 |
| commit | 43eda43c20578de75f1811072c7a398da4a891e5 (patch) | |
| tree | fc022d154ab9bc7620b01ed430d394e964761f12 | |
| parent | 65c42d56ac58e19f41bc575efd5180eab82110f0 (diff) | |
| download | rockbox-43eda43c20578de75f1811072c7a398da4a891e5.zip rockbox-43eda43c20578de75f1811072c7a398da4a891e5.tar.gz rockbox-43eda43c20578de75f1811072c7a398da4a891e5.tar.bz2 rockbox-43eda43c20578de75f1811072c7a398da4a891e5.tar.xz | |
Wrong polarity for player USB check
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1258 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/usb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index a9df5ee..a3421c7 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -78,12 +78,12 @@ static void usb_thread(void) static void usb_tick(void) { - int current_status; + bool current_status; #ifdef ARCHOS_RECORDER - current_status = PCDR & 0x04; + current_status = (PCDR & 0x04)?true:false; #else - current_status = PADR & 0x8000; + current_status = (PADR & 0x8000)?false:true; #endif if(current_status && !usb_connected) |