static int dl_s_offset = -1;
static int dl_s_crc = -1;
static int sentid = 0;
+static int dl_all = 0;
static uint mydev = 0;
static uint peerdev;
e->subfiletype == SF_FIT_WORKOUT )))
return 0;
+ if (e->flags & FFLAG_ARCHIVE && dl_all == 0) {
+ return 0;
+ }
+
format_time(ts, FIT_TIMESTAMP_PATTERN, 256, e->last_modified);
sprintf(filename, FIT_FILE_NAME_PATTERN, ts);
if (stat(filename, &statbuf) == 0 &&
sprintf(authfile, "%s/.gant", getenv("HOME"));
}
progname = av[0];
- while ((c = getopt(ac, av, "l:a:d:i:m:PpvDrnzf:")) != -1) {
+ while ((c = getopt(ac, av, "l:a:d:i:m:PpvDrnzf:E")) != -1) {
switch(c) {
case 'a':
authfile = optarg;
case 'z':
nopairing = 1;
break;
+ case 'E':
+ dl_all = 1;
+ break;
default:
fprintf(stderr, "unknown option %s\n", optarg);
usage();