summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 898cf8bad9..77ebe019f8 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -349,18 +349,14 @@ bool dbg_hw_info(void)
349 snprintf(buf, 32, "USB: %s", usb_polarity?"positive":"negative"); 349 snprintf(buf, 32, "USB: %s", usb_polarity?"positive":"negative");
350 lcd_puts(0, 3, buf); 350 lcd_puts(0, 3, buf);
351 351
352 snprintf(buf, 32, "ATA: 0x%x,%s", ata_io_address,
353 ata_device ? "slave":"master");
354 lcd_puts(0, 4, buf);
355
356 snprintf(buf, 32, "PR: %s", pr_polarity?"positive":"negative"); 352 snprintf(buf, 32, "PR: %s", pr_polarity?"positive":"negative");
357 lcd_puts(0, 5, buf); 353 lcd_puts(0, 4, buf);
358 354
359 if (got_id) 355 if (got_id)
360 snprintf(buf, 32, "Flash: M=%02x D=%02x", manu, id); 356 snprintf(buf, 32, "Flash: M=%02x D=%02x", manu, id);
361 else 357 else
362 snprintf(buf, 32, "Flash: M=?? D=??"); /* unknown, sorry */ 358 snprintf(buf, 32, "Flash: M=?? D=??"); /* unknown, sorry */
363 lcd_puts(0, 6, buf); 359 lcd_puts(0, 5, buf);
364 360
365 if (has_bootrom) 361 if (has_bootrom)
366 { 362 {
@@ -372,8 +368,13 @@ bool dbg_hw_info(void)
372 { 368 {
373 snprintf(buf, 32, "Boot ROM: none"); 369 snprintf(buf, 32, "Boot ROM: none");
374 } 370 }
371 lcd_puts(0, 6, buf);
372
373#ifndef HAVE_MMC /* have ATA */
374 snprintf(buf, 32, "ATA: 0x%x,%s", ata_io_address,
375 ata_device ? "slave":"master");
375 lcd_puts(0, 7, buf); 376 lcd_puts(0, 7, buf);
376 377#endif
377 lcd_update(); 378 lcd_update();
378 379
379 while(1) 380 while(1)
@@ -580,11 +581,11 @@ bool dbg_ports(void)
580 snprintf(buf, 32, "Batt: %d.%02dV %d%% ", batt_int, batt_frac, 581 snprintf(buf, 32, "Batt: %d.%02dV %d%% ", batt_int, batt_frac,
581 battery_level()); 582 battery_level());
582 lcd_puts(0, 6, buf); 583 lcd_puts(0, 6, buf);
583 584#ifndef HAVE_MMC /* have ATA */
584 snprintf(buf, 32, "ATA: %s, 0x%x", 585 snprintf(buf, 32, "ATA: %s, 0x%x",
585 ata_device?"slave":"master", ata_io_address); 586 ata_device?"slave":"master", ata_io_address);
586 lcd_puts(0, 7, buf); 587 lcd_puts(0, 7, buf);
587 588#endif
588 lcd_update(); 589 lcd_update();
589 button = button_get_w_tmo(HZ/10); 590 button = button_get_w_tmo(HZ/10);
590 591