diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2010-09-20 19:37:17 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2010-09-20 19:37:17 +0000 |
| commit | c0edce8f5c51508ccaef9bb8460205b0ea2c9438 (patch) | |
| tree | e1355b54824407f3c93e1bc7ba75b4206efe0fbb /apps/debug_menu.c | |
| parent | 855346a9480c5b923be2ee577f5451c4bac8374c (diff) | |
| download | rockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.zip rockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.tar.gz rockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.tar.bz2 rockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.tar.xz | |
iap: make variable serbuf non-global
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28128 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index c0a476d..94076bf 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -122,6 +122,10 @@ #include "usb_core.h" #endif +#if defined(IPOD_ACCESSORY_PROTOCOL) +#include "iap.h" +#endif + /*---------------------------------------------------*/ /* SPECIAL DEBUG STUFF */ /*---------------------------------------------------*/ @@ -1182,7 +1186,7 @@ bool dbg_ports(void) #endif #if defined(IPOD_ACCESSORY_PROTOCOL) -extern unsigned char serbuf[]; + const unsigned char *serbuf = iap_get_serbuf(); lcd_putsf(0, line++, "IAP PACKET: %02x %02x %02x %02x %02x %02x %02x %02x", serbuf[0], serbuf[1], serbuf[2], serbuf[3], serbuf[4], serbuf[5], serbuf[6], serbuf[7]); |