mirror of https://github.com/g4klx/MMDVMHost
Send correct number of bytes
This commit is contained in:
parent
c2187fd624
commit
409e0de721
|
|
@ -137,7 +137,7 @@ bool CFMControl::writeModem(const unsigned char* data, unsigned int length)
|
||||||
fclose(audiofile);
|
fclose(audiofile);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return m_network->writeData((unsigned char*)out, nOut);
|
return m_network->writeData((unsigned char*)out, nOut * sizeof(unsigned short));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue