summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c10
-rw-r--r--apps/main.c7
2 files changed, 11 insertions, 6 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index ba0114774d..c0a476dc10 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1601,12 +1601,10 @@ static bool view_battery(void)
1601 lcd_putsf(0, 7, "Headphone: %s", 1601 lcd_putsf(0, 7, "Headphone: %s",
1602 headphone ? "connected" : "disconnected"); 1602 headphone ? "connected" : "disconnected");
1603#ifdef IPOD_VIDEO 1603#ifdef IPOD_VIDEO
1604 x = (adc_read(ADC_4066_ISTAT) * 2400) / 1604 if(probed_ramsize == 64)
1605#if MEM == 64 1605 x = (adc_read(ADC_4066_ISTAT) * 2400) / (1024 * 2);
1606 (1024 * 2); 1606 else
1607#else 1607 x = (adc_read(ADC_4066_ISTAT) * 2400) / (1024 * 3);
1608 (1024 * 3);
1609#endif
1610 lcd_putsf(0, 8, "Ibat: %d mA", x); 1608 lcd_putsf(0, 8, "Ibat: %d mA", x);
1611 lcd_putsf(0, 9, "Vbat * Ibat: %d mW", x * y / 1000); 1609 lcd_putsf(0, 9, "Vbat * Ibat: %d mW", x * y / 1000);
1612#endif 1610#endif
diff --git a/apps/main.c b/apps/main.c
index ceaa85f38f..0c2f0751b3 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -422,6 +422,13 @@ static void init(void)
422#endif 422#endif
423 423
424 system_init(); 424 system_init();
425#if defined(IPOD_VIDEO)
426 audiobufend=(unsigned char *)audiobufend_lds;
427 if(MEM==64 && probed_ramsize!=64)
428 {
429 audiobufend -= (32<<20);
430 }
431#endif
425 kernel_init(); 432 kernel_init();
426 433
427#ifdef HAVE_ADJUSTABLE_CPU_FREQ 434#ifdef HAVE_ADJUSTABLE_CPU_FREQ