summaryrefslogtreecommitdiff
path: root/apps/plugins/battery_bench.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/battery_bench.c')
-rw-r--r--apps/plugins/battery_bench.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c
index 53931d1930..e918fae39d 100644
--- a/apps/plugins/battery_bench.c
+++ b/apps/plugins/battery_bench.c
@@ -567,7 +567,12 @@ enum plugin_status plugin_start(const void* parameter)
567 ,MODEL_NAME,rb->rbversion); 567 ,MODEL_NAME,rb->rbversion);
568 568
569 rb->fdprintf(fd, "# Battery type: %d mAh Buffer Entries: %d\n", 569 rb->fdprintf(fd, "# Battery type: %d mAh Buffer Entries: %d\n",
570 rb->global_settings->battery_capacity, (int)BUF_ELEMENTS); 570#if BATTERY_CAPACITY_INC > 0
571 rb->global_settings->battery_capacity,
572#else
573 BATTERY_CAPACITY_DEFAULT,
574#endif
575 (int)BUF_ELEMENTS);
571 576
572 rb->fdprintf(fd, "# Rockbox has been running for %02d:%02d:%02d\n", 577 rb->fdprintf(fd, "# Rockbox has been running for %02d:%02d:%02d\n",
573 HMS((unsigned)start_tick/HZ)); 578 HMS((unsigned)start_tick/HZ));