mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Send correct number of bytes
This commit is contained in:
@@ -137,7 +137,7 @@ bool CFMControl::writeModem(const unsigned char* data, unsigned int length)
|
||||
fclose(audiofile);
|
||||
#endif
|
||||
|
||||
return m_network->writeData((unsigned char*)out, nOut);
|
||||
return m_network->writeData((unsigned char*)out, nOut * sizeof(unsigned short));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user