Add a reset connection button. Automatically disconnects and
reconnects to try to heal a broken connection.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user