Improve the logging of the Icom and Kenwood networking.

This commit is contained in:
Jonathan Naylor
2021-03-09 21:29:48 +00:00
parent dd3a117712
commit b31bc5f8a7
4 changed files with 27 additions and 14 deletions
+9 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2009-2014,2016,2018,2020 by Jonathan Naylor G4KLX
* Copyright (C) 2009-2014,2016,2018,2020,2021 by Jonathan Naylor G4KLX
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -51,9 +51,15 @@ bool CIcomNetwork::open()
return false;
}
LogMessage("Opening Icom network connection");
bool ret = m_socket.open(m_addr);
if (!ret) {
LogError("Unable to open the Icom network connection");
return false;
}
return m_socket.open(m_addr);
LogMessage("Opened the Icom network connection");
return true;
}
bool CIcomNetwork::write(const unsigned char* data, unsigned int len)