summaryrefslogtreecommitdiffstats
path: root/qt-ui/btdeviceselectiondialog.h
diff options
context:
space:
mode:
authorGravatar Claudiu Olteanu <olteanu.claudiu@ymail.com>2015-09-19 19:14:51 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-19 09:43:06 -0700
commit89540e0fb2051b667135e2588e70b8ad49f61cd4 (patch)
tree62fd46584a10dbc3f27937dba38e3ec6c5b01d61 /qt-ui/btdeviceselectiondialog.h
parent54f4ed70ce545283b3fbb0b7549d57fef1d84095 (diff)
downloadsubsurface-89540e0fb2051b667135e2588e70b8ad49f61cd4.tar.gz
Fix Bluetooth address truncation issues on Windows
On some Windows platforms when we convert a Bth address to a String it is formatted as "(XX:XX:XX:XX:XX:XX)". Therefore we first try to remove the round parentheses and finally we truncate the string to 17 because there are 6 two-digit hex values and 5 colons. Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/btdeviceselectiondialog.h')
-rw-r--r--qt-ui/btdeviceselectiondialog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/btdeviceselectiondialog.h b/qt-ui/btdeviceselectiondialog.h
index 3d72db418..d947d3449 100644
--- a/qt-ui/btdeviceselectiondialog.h
+++ b/qt-ui/btdeviceselectiondialog.h
@@ -15,6 +15,7 @@
#define SUCCESS 0
#define BTH_ADDR_STR_LEN 40
+ #define BTH_ADDR_PRETTY_STRING_LEN 17 // there are 6 two-digit hex values and 5 colons
#undef ERROR // this is already declared in our headers
#undef IGNORE // this is already declared in our headers