mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Fix sample packing
This commit is contained in:
@@ -167,9 +167,9 @@ unsigned int CFMControl::readModem(unsigned char* data, unsigned int space)
|
|||||||
pack = ((unsigned int)sample1) << 12;
|
pack = ((unsigned int)sample1) << 12;
|
||||||
pack |= sample2;
|
pack |= sample2;
|
||||||
|
|
||||||
data[j] = packPointer[1U];
|
data[j] = packPointer[0U];
|
||||||
data[j + 1U] = packPointer[2U];
|
data[j + 1U] = packPointer[1U];
|
||||||
data[j + 2U] = packPointer[3U];
|
data[j + 2U] = packPointer[2U];
|
||||||
}
|
}
|
||||||
|
|
||||||
return j;//return the number of bytes written
|
return j;//return the number of bytes written
|
||||||
|
|||||||
Reference in New Issue
Block a user