diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/debug_menu.c | 6 | ||||
| -rw-r--r-- | apps/plugin.c | 2 | ||||
| -rw-r--r-- | apps/plugin.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 5773374..b4d917a 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -58,7 +58,6 @@ #if (CONFIG_PLATFORM & PLATFORM_NATIVE) #include "disk.h" #include "adc.h" -#include "power.h" #include "usb.h" #include "rtc.h" #include "storage.h" @@ -75,6 +74,7 @@ #include "radio.h" #endif #endif +#include "power.h" #ifdef HAVE_LCD_BITMAP #include "scrollbar.h" @@ -900,7 +900,7 @@ static bool tsc2100_debug(void) return simplelist_show_list(&info); } #endif -#if (CONFIG_PLATFORM & PLATFORM_NATIVE) +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SAMSUNG_YPR0) #ifdef HAVE_LCD_BITMAP /* * view_battery() shows a automatically scaled graph of the battery voltage @@ -2168,7 +2168,7 @@ static const struct the_menu_item menuitems[] = { { "View CPU stats", dbg_cpuinfo }, #endif #ifdef HAVE_LCD_BITMAP -#if (CONFIG_PLATFORM & PLATFORM_NATIVE) +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SAMSUNG_YPR0) { "View battery", view_battery }, #endif #ifndef APPLICATION diff --git a/apps/plugin.c b/apps/plugin.c index 6dd84af..f17ad3c 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -664,7 +664,7 @@ static const struct plugin_api rockbox_api = { battery_level, battery_level_safe, battery_time, -#if (CONFIG_PLATFORM & PLATFORM_NATIVE) +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SAMSUNG_YPR0) battery_voltage, #endif #if CONFIG_CHARGING diff --git a/apps/plugin.h b/apps/plugin.h index 3644e64..0bb7262 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -794,7 +794,7 @@ struct plugin_api { int (*battery_level)(void); bool (*battery_level_safe)(void); int (*battery_time)(void); -#if (CONFIG_PLATFORM & PLATFORM_NATIVE) +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SAMSUNG_YPR0) unsigned int (*battery_voltage)(void); #endif #if CONFIG_CHARGING |