aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Kristaps Dz <kristaps@bsd.lv>2018-07-29 02:23:48 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-29 10:55:25 -0700
commit02e76be96a35047621883443db67f272ba5c59c8 (patch)
tree74abe3f8ed9c093adc9db7f6e74906410b4ff2d4
parentff2de9099f4d5bb65efd5899e4dc5cba27483733 (diff)
downloadsubsurface-02e76be96a35047621883443db67f272ba5c59c8.tar.gz
BT support: disable BT download when compiling without BT
When BT_SUPPORT is not enabled, don't default to "true" for using bluetooth for downloading dives. Otherwise, bluetooth will be forced since the bluetooth button has been removed and is never overridden. Fixes #1541 Signed-off-by: Kristaps Dzonsons <kristaps@bsd.lv>
-rw-r--r--core/downloadfromdcthread.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp
index 250405f2f..d6e06aae3 100644
--- a/core/downloadfromdcthread.cpp
+++ b/core/downloadfromdcthread.cpp
@@ -216,7 +216,11 @@ DCDeviceData::DCDeviceData()
data.download_table = nullptr;
data.diveid = 0;
data.deviceid = 0;
+#if defined(BT_SUPPORT)
data.bluetooth_mode = true;
+#else
+ data.bluetooth_mode = false;
+#endif
data.force_download = false;
data.create_new_trip = false;
data.libdc_dump = false;