From 02e76be96a35047621883443db67f272ba5c59c8 Mon Sep 17 00:00:00 2001 From: Kristaps Dz Date: Sun, 29 Jul 2018 02:23:48 +0200 Subject: [PATCH] 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 --- core/downloadfromdcthread.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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;