projects
/
profile
/
ivi
/
automotive-message-broker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5e483f
)
Addition for using the bluez bluetooth disconnect feature when OBD disconnects
15/2515/1
author
Michael Carpenter
<malcom2073@gmail.com>
Wed, 21 Nov 2012 23:27:12 +0000
(18:27 -0500)
committer
Michael Carpenter
<malcom2073@gmail.com>
Wed, 21 Nov 2012 23:27:12 +0000
(18:27 -0500)
plugins/obd2plugin/obd2source.cpp
patch
|
blob
|
history
diff --git
a/plugins/obd2plugin/obd2source.cpp
b/plugins/obd2plugin/obd2source.cpp
index
8eb2c48
..
54db63a
100644
(file)
--- a/
plugins/obd2plugin/obd2source.cpp
+++ b/
plugins/obd2plugin/obd2source.cpp
@@
-202,6
+202,8
@@
void threadLoop(gpointer data)
else if (req->req == "disconnect")
{
obd->closePort();
+ ObdBluetoothDevice bt;
+ bt.disconnect(source->m_btDeviceAddress, source->m_btAdapterAddress);
connected = false;
}
delete req;