mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Fix other crashes
This commit is contained in:
parent
713d12e5a4
commit
b66a92bb9c
3 changed files with 6 additions and 2 deletions
|
|
@ -595,6 +595,10 @@ unsigned int CP25Control::readModem(unsigned char* data)
|
|||
void CP25Control::writeNetwork()
|
||||
{
|
||||
unsigned char data[100U];
|
||||
|
||||
if (m_network == NULL)
|
||||
return;
|
||||
|
||||
unsigned int length = m_network->read(data, 100U);
|
||||
if (length == 0U)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue