mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
ff2de9099f
commit
02e76be96a
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue