summaryrefslogtreecommitdiff
path: root/examples/detect.c
diff options
context:
space:
mode:
authorLinus Walleij <triad@df.lth.se>2006-09-12 10:42:26 +0000
committerLinus Walleij <triad@df.lth.se>2006-09-12 10:42:26 +0000
commit80439345a558ad3dc9197e14486a5151335c3c00 (patch)
treeee5a2c7ddd23aabafa2946c667de4d48419f41b8 /examples/detect.c
parentd31e6196bbf9892bb1d520838aeecc3258d6047d (diff)
downloadlibmtp-80439345a558ad3dc9197e14486a5151335c3c00.tar.gz
Some fixes.
Diffstat (limited to 'examples/detect.c')
-rw-r--r--examples/detect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/detect.c b/examples/detect.c
index 8e425da..f6e73d5 100644
--- a/examples/detect.c
+++ b/examples/detect.c
@@ -129,7 +129,8 @@ int main (int argc, char **argv)
printf(" Battery level %d of %d (%d%%)\n",currbattlevel, maxbattlevel,
(int) ((float) currbattlevel/ (float) maxbattlevel * 100.0));
} else {
- printf(" Error getting battery info...\n");
+ // Silently ignore. Some devices does not support getting the
+ // battery level.
}
ret = LIBMTP_Get_Supported_Filetypes(device, &filetypes, &filetypes_len);