mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 06:53:42 +00:00
Small Linux compilation cleanups.
This commit is contained in:
parent
eb7d62348c
commit
ff0a97a150
2 changed files with 11 additions and 12 deletions
|
|
@ -179,11 +179,11 @@ bool CFMControl::writeModem(const unsigned char* data, unsigned int length)
|
|||
|
||||
unsigned int CFMControl::readModem(unsigned char* data, unsigned int space)
|
||||
{
|
||||
assert(data != nullptr);
|
||||
assert(space > 0U);
|
||||
assert(data != nullptr);
|
||||
assert(space > 0U);
|
||||
|
||||
if (m_network == nullptr)
|
||||
return 0U;
|
||||
if (m_network == nullptr)
|
||||
return 0U;
|
||||
|
||||
if (space > 240U) // 160 samples 12-bit
|
||||
space = 240U; // 160 samples 12-bit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue