1
0
Fork 0
forked from len0rd/rockbox

battery_bench: comment the battery_bench.txt header with '#'

gnuplot will ignore lines which begin with '#'
Split a line so the output will fit in 80 columns

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26430 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-05-31 12:37:29 +00:00
parent 22b12cafbb
commit 09cc3e604d

View file

@ -529,28 +529,28 @@ int main(void)
if (fd >= 0) if (fd >= 0)
{ {
rb->fdprintf(fd, rb->fdprintf(fd,
"This plugin will log your battery performance in a\n" "# This plugin will log your battery performance in a\n"
"file (%s) every minute.\n" "# file (%s) every minute.\n"
"To properly test your battery:\n" "# To properly test your battery:\n"
"1) Select and playback an album. " "# 1) Select and playback an album. "
"(Be sure to be more than the player's buffer)\n" "# (Be sure to be more than the player's buffer)\n"
"2) Set to repeat.\n" "# 2) Set to repeat.\n"
"3) Let the player run completely out of battery.\n" "# 3) Let the player run completely out of battery.\n"
"4) Recharge and copy (or whatever you want) the txt file to " "# 4) Recharge and copy (or whatever you want) the txt file to "
"your computer.\n" "# your computer.\n"
"Now you can make graphs with the data of the battery log.\n" "# Now you can make graphs with the data of the battery log.\n"
"Do not enter another plugin during the test or else the " "# Do not enter another plugin during the test or else the \n"
"logging activity will end.\n\n" "# logging activity will end.\n\n"
"P.S: You can decide how you will make your tests.\n" "# P.S: You can decide how you will make your tests.\n"
"Just don't open another plugin to be sure that your log " "# Just don't open another plugin to be sure that your log "
"will continue.\n\n",BATTERY_LOG); "will continue.\n\n",BATTERY_LOG);
rb->fdprintf(fd, rb->fdprintf(fd,
"Battery bench run for %s version %s\n\n" "# Battery bench run for %s version %s\n\n"
,MODEL_NAME,rb->rbversion); ,MODEL_NAME,rb->rbversion);
rb->fdprintf(fd, rb->fdprintf(fd,
"Battery type: %d mAh Buffer Entries: %d\n" "# Battery type: %d mAh Buffer Entries: %d\n"
" Time:, Seconds:, Level:, Time Left:, Voltage[mV]:" "# Time:, Seconds:, Level:, Time Left:, Voltage[mV]:"
#if CONFIG_CHARGING #if CONFIG_CHARGING
", C:" ", C:"
#endif #endif