mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
f0a512b0b8
commit
faf4736675
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue