downloader: turn off bluetooth mode for now

Eventually, this should also be set from the command line.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2020-11-22 20:31:57 +01:00 committed by Dirk Hohndel
parent f0a512b0b8
commit faf4736675

View file

@ -10,11 +10,13 @@ void cliDownloader(const char *vendor, const char *product, const char *device)
DiveImportedModel *diveImportedModel = new DiveImportedModel();
DiveImportedModel::connect(diveImportedModel, &DiveImportedModel::downloadFinished, [] {
// do something useful at the end of the download
printf("Finished\n");
});
auto data = diveImportedModel->thread.data();
data->setVendor(vendor);
data->setProduct(product);
data->setBluetoothMode(false);
if (data->vendor() == "Uemis") {
char *colon;
char *devname = strdup(device);
@ -29,7 +31,7 @@ void cliDownloader(const char *vendor, const char *product, const char *device)
// some assumptiond - should all be configurable
data->setForceDownload(false);
data->setSaveLog(false);
data->setSaveLog(true);
data->setSaveDump(false);
// before we start, remember where the dive_table ended