Merge pull request #111 from lucamarche-iz1mlt/master

Prints to the log file
This commit is contained in:
Jonathan Naylor 2018-06-18 19:31:57 +01:00 committed by GitHub
commit a5e1a8fde9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -773,6 +773,8 @@ void CYSFGateway::startupLinking()
}
}
}
if (m_startup.empty())
LogMessage("No connection startup");
}
void CYSFGateway::readFCSRoomsFile(const std::string& filename)

View file

@ -166,7 +166,11 @@ void CYSFNetwork::clock(unsigned int ms)
return;
if (::memcmp(buffer, "YSFP", 4U) == 0 && !m_linked) {
LogMessage("Linked to %s", m_name.c_str());
if (strcmp(m_name.c_str(),"MMDVM")== 0)
LogMessage("Link successful to %s", m_name.c_str());
else
LogMessage("Linked to %s", m_name.c_str());
m_linked = true;
}