From 77058807b4eeeeff9ee2d91ae77a7a85a7e96b3b Mon Sep 17 00:00:00 2001 From: zedamota Date: Sat, 26 Nov 2011 00:04:36 +0000 Subject: [PATCH] Added some more debug messages to help catch bugs, no that there are any. --- ground/openpilotgcs/src/plugins/config/configgadgetwidget.cpp | 1 + .../openpilotgcs/src/plugins/coreplugin/connectionmanager.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ground/openpilotgcs/src/plugins/config/configgadgetwidget.cpp b/ground/openpilotgcs/src/plugins/config/configgadgetwidget.cpp index 4eca15bf9..d40db122f 100644 --- a/ground/openpilotgcs/src/plugins/config/configgadgetwidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configgadgetwidget.cpp @@ -134,6 +134,7 @@ void ConfigGadgetWidget::onAutopilotDisconnect() { void ConfigGadgetWidget::onAutopilotConnect() { + qDebug()<<"ConfigGadgetWidget onAutopilotConnect"; // First of all, check what Board type we are talking to, and // if necessary, remove/add tabs in the config gadget: ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance(); diff --git a/ground/openpilotgcs/src/plugins/coreplugin/connectionmanager.cpp b/ground/openpilotgcs/src/plugins/coreplugin/connectionmanager.cpp index f63c6e7da..9dfa46518 100644 --- a/ground/openpilotgcs/src/plugins/coreplugin/connectionmanager.cpp +++ b/ground/openpilotgcs/src/plugins/coreplugin/connectionmanager.cpp @@ -358,7 +358,10 @@ void ConnectionManager::devChanged(IConnection *connection) if(m_mainWindow->generalSettings()->autoConnect() || m_mainWindow->generalSettings()->autoSelect()) m_availableDevList->setCurrentIndex(m_availableDevList->count()-1); if(m_mainWindow->generalSettings()->autoConnect()) + { connectDevice(); + qDebug()<<"ConnectionManager::devChanged autoconnected USB device"; + } } } if(m_ioDev)//if a device is connected make it the one selected on the dropbox