diff options
author | Linus Walleij <triad@df.lth.se> | 2006-09-12 10:42:26 +0000 |
---|---|---|
committer | Linus Walleij <triad@df.lth.se> | 2006-09-12 10:42:26 +0000 |
commit | 80439345a558ad3dc9197e14486a5151335c3c00 (patch) | |
tree | ee5a2c7ddd23aabafa2946c667de4d48419f41b8 /examples/detect.c | |
parent | d31e6196bbf9892bb1d520838aeecc3258d6047d (diff) | |
download | libmtp-80439345a558ad3dc9197e14486a5151335c3c00.tar.gz |
Some fixes.
Diffstat (limited to 'examples/detect.c')
-rw-r--r-- | examples/detect.c | 3 |
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); |