Add a reset connection button. Automatically disconnects and

reconnects to try to heal a broken connection.
This commit is contained in:
Collin Kidder
2019-05-13 20:50:16 -04:00
parent d3aa669a72
commit 09b8d64f4a
7 changed files with 71 additions and 21 deletions
+8
View File
@@ -126,6 +126,14 @@ void CANConnectionModel::remove(CANConnection* pConn_p)
endResetModel();
}
void CANConnectionModel::replace(int idx , CANConnection* pConn_p)
{
CANConManager* manager = CANConManager::getInstance();
beginResetModel();
manager->replace(idx, pConn_p);
endResetModel();
}
CANConnection* CANConnectionModel::getAtIdx(int pIdx) const
{