summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-09-20 19:37:17 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-09-20 19:37:17 +0000
commitc0edce8f5c51508ccaef9bb8460205b0ea2c9438 (patch)
treee1355b54824407f3c93e1bc7ba75b4206efe0fbb /apps/debug_menu.c
parent855346a9480c5b923be2ee577f5451c4bac8374c (diff)
downloadrockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.tar.gz
rockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.zip
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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index c0a476dc10..94076bf64d 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -122,6 +122,10 @@
122#include "usb_core.h" 122#include "usb_core.h"
123#endif 123#endif
124 124
125#if defined(IPOD_ACCESSORY_PROTOCOL)
126#include "iap.h"
127#endif
128
125/*---------------------------------------------------*/ 129/*---------------------------------------------------*/
126/* SPECIAL DEBUG STUFF */ 130/* SPECIAL DEBUG STUFF */
127/*---------------------------------------------------*/ 131/*---------------------------------------------------*/
@@ -1182,7 +1186,7 @@ bool dbg_ports(void)
1182#endif 1186#endif
1183 1187
1184#if defined(IPOD_ACCESSORY_PROTOCOL) 1188#if defined(IPOD_ACCESSORY_PROTOCOL)
1185extern unsigned char serbuf[]; 1189 const unsigned char *serbuf = iap_get_serbuf();
1186 lcd_putsf(0, line++, "IAP PACKET: %02x %02x %02x %02x %02x %02x %02x %02x", 1190 lcd_putsf(0, line++, "IAP PACKET: %02x %02x %02x %02x %02x %02x %02x %02x",
1187 serbuf[0], serbuf[1], serbuf[2], serbuf[3], serbuf[4], serbuf[5], 1191 serbuf[0], serbuf[1], serbuf[2], serbuf[3], serbuf[4], serbuf[5],
1188 serbuf[6], serbuf[7]); 1192 serbuf[6], serbuf[7]);