mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Fix *Network::isConnected().
As m_enabled is changed accordingly to the modem current mode, it's not valid to use it for network connexion status.
This commit is contained in:
@@ -426,7 +426,7 @@ unsigned int CP25Network::read(unsigned char* data, unsigned int length)
|
||||
|
||||
bool CP25Network::isConnected() const
|
||||
{
|
||||
return (m_enabled && (m_addrLen != 0));
|
||||
return (m_addrLen != 0);
|
||||
}
|
||||
|
||||
void CP25Network::close()
|
||||
|
||||
Reference in New Issue
Block a user