Addition for using the bluez bluetooth disconnect feature when OBD disconnects 15/2515/1
authorMichael Carpenter <malcom2073@gmail.com>
Wed, 21 Nov 2012 23:27:12 +0000 (18:27 -0500)
committerMichael Carpenter <malcom2073@gmail.com>
Wed, 21 Nov 2012 23:27:12 +0000 (18:27 -0500)
plugins/obd2plugin/obd2source.cpp

index 8eb2c48..54db63a 100644 (file)
@@ -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;