Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: USB icon for Players
From: nsauzede (nsauzede_at_online.fr)
Date: 2002-08-20


A small patch to display/remove usb icon on Players when usb cable is
inserted/removed
(sorry if someone is already taking care of the icons)

And I think I've found a case where the double-height line-mode persists
after the bootup logo : I happened once (I can't reproduce it right now)
when in Resume mode on, and was playing a file in a playlist

I'll try to look a bit more at it...

NSauzede.
---------------------------------

--- ../Copie de cvs/firmware/usb.c Wed Jul 24 17:09:50 2002
+++ firmware/usb.c Tue Aug 20 20:10:08 2002
@@ -185,6 +185,9 @@
                 waiting_for_ack = true;
                 DEBUGF("USB extracted. Waiting for ack from %d
threads...\n",
                        num_acks_to_expect);
+#ifdef HAVE_LCD_CHARCELLS
+ lcd_icon(ICON_USB, false);
+#endif
                 break;

             case SYS_USB_DISCONNECTED_ACK:
@@ -304,6 +307,9 @@
     lcd_update();
 #else
     lcd_puts(0, 0, "[USB Mode]");
+#ifdef HAVE_LCD_CHARCELLS
+ lcd_icon(ICON_USB, true);
+#endif
 #endif
 }



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa