From 25d7c58c07fc4b0bf3bc188f540a4ac66f6cd233 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 14 Nov 2020 19:22:14 -0800 Subject: downloader: first step to get instructions via CLI This still doesn't do a thing, but at least it seems to get the information closer to where we want it. Signed-off-by: Dirk Hohndel --- subsurface-downloader-main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'subsurface-downloader-main.cpp') diff --git a/subsurface-downloader-main.cpp b/subsurface-downloader-main.cpp index 8a3231ce5..2993e5351 100644 --- a/subsurface-downloader-main.cpp +++ b/subsurface-downloader-main.cpp @@ -8,6 +8,7 @@ #include "core/settings/qPref.h" #include "core/tag.h" #include "core/dive.h" +#include "core/subsurface-string.h" #include #include @@ -85,8 +86,10 @@ int main(int argc, char **argv) qDebug() << "loading dive data from" << files; print_files(); if (!quit) { - // do something - ; + if (!empty_string(prefs.dive_computer.vendor) && !empty_string(prefs.dive_computer.product) && !empty_string(prefs.dive_computer.device)) { + // download from that dive computer + printf("Downloading dives from %s %s (via %s)\n", prefs.dive_computer.vendor, prefs.dive_computer.product, prefs.dive_computer.device); + } } taglist_free(g_tag_list); parse_xml_exit(); -- cgit v1.2.3-70-g09d2