summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/pp/debug-pp.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/pp/debug-pp.c')
-rw-r--r--firmware/target/arm/pp/debug-pp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/firmware/target/arm/pp/debug-pp.c b/firmware/target/arm/pp/debug-pp.c
index f4ba61cd39..2f57e1ef14 100644
--- a/firmware/target/arm/pp/debug-pp.c
+++ b/firmware/target/arm/pp/debug-pp.c
@@ -155,9 +155,12 @@ bool dbg_ports(void)
#if defined(IPOD_ACCESSORY_PROTOCOL)
const unsigned char *serbuf = iap_get_serbuf();
- lcd_putsf(0, line++, "IAP: %02x %02x %02x %02x %02x %02x %02x %02x",
- serbuf[0], serbuf[1], serbuf[2], serbuf[3], serbuf[4], serbuf[5],
- serbuf[6], serbuf[7]);
+ if (serbuf)
+ {
+ lcd_putsf(0, line++, "IAP: %02x %02x %02x %02x %02x %02x %02x %02x",
+ serbuf[0], serbuf[1], serbuf[2], serbuf[3], serbuf[4], serbuf[5],
+ serbuf[6], serbuf[7]);
+ }
#endif
#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB)