From 43eda43c20578de75f1811072c7a398da4a891e5 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sat, 29 Jun 2002 22:59:12 +0000 Subject: Wrong polarity for player USB check git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1258 a1c6a512-1295-4272-9138-f99709370657 --- firmware/usb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware') diff --git a/firmware/usb.c b/firmware/usb.c index a9df5ee57a..a3421c7d47 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) -- cgit v1.2.3