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:
Kristaps Dz 2018-07-29 02:23:48 +02:00 committed by Dirk Hohndel
parent ff2de9099f
commit 02e76be96a

View file

@ -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;