diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-04-24 18:11:53 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-04-25 07:56:19 -0700 |
commit | b930c39eade0bff95c7591015e7fd6bee55269f7 (patch) | |
tree | 671baff8c2d4859a4305808778cce183b40c7e8d /core/qtserialbluetooth.cpp | |
parent | c5e40868209b365c7549d0da29b7063a72f21ed6 (diff) | |
download | subsurface-b930c39eade0bff95c7591015e7fd6bee55269f7.tar.gz |
Compile fix when compiling without BLE enabled
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/qtserialbluetooth.cpp')
-rw-r--r-- | core/qtserialbluetooth.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/qtserialbluetooth.cpp b/core/qtserialbluetooth.cpp index be6dfd3be..bc274dbd9 100644 --- a/core/qtserialbluetooth.cpp +++ b/core/qtserialbluetooth.cpp @@ -41,8 +41,6 @@ typedef struct qt_serial_t { long timeout; } qt_serial_t; -#ifdef BLE_SUPPORT - static dc_status_t qt_serial_open(qt_serial_t **io, dc_context_t *context, const char* devaddr) { // Allocate memory. @@ -398,8 +396,7 @@ static dc_status_t qt_serial_set_timeout(void *io, int timeout) return DC_STATUS_SUCCESS; } -#endif - +#ifdef BLE_SUPPORT dc_status_t ble_packet_open(dc_iostream_t **iostream, dc_context_t *context, const char* devaddr, void *userdata) { @@ -430,6 +427,8 @@ ble_packet_open(dc_iostream_t **iostream, dc_context_t *context, const char* dev return dc_custom_open (iostream, context, DC_TRANSPORT_BLE, &callbacks, io); } +#endif /* BLE_SUPPORT */ + dc_status_t rfcomm_stream_open(dc_iostream_t **iostream, dc_context_t *context, const char* devaddr) |