mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Remove rate 1/2 data regeneration.
This commit is contained in:
16
DMRSlot.cpp
16
DMRSlot.cpp
@@ -311,14 +311,6 @@ void CDMRSlot::writeModem(unsigned char *data)
|
|||||||
if (m_rfState != RS_RF_DATA)
|
if (m_rfState != RS_RF_DATA)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Regenerate the payload if possible
|
|
||||||
if (dataType == DT_RATE_12_DATA) {
|
|
||||||
CBPTC19696 bptc;
|
|
||||||
unsigned char payload[12U];
|
|
||||||
bptc.decode(data + 2U, payload);
|
|
||||||
bptc.encode(payload, data + 2U);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Regenerate the Slot Type
|
// Regenerate the Slot Type
|
||||||
slotType.getData(data + 2U);
|
slotType.getData(data + 2U);
|
||||||
|
|
||||||
@@ -952,14 +944,6 @@ void CDMRSlot::writeNetwork(const CDMRData& dmrData)
|
|||||||
if (m_netState != RS_NET_DATA)
|
if (m_netState != RS_NET_DATA)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Regenerate the payload if possible
|
|
||||||
if (dataType == DT_RATE_12_DATA) {
|
|
||||||
CBPTC19696 bptc;
|
|
||||||
unsigned char payload[12U];
|
|
||||||
bptc.decode(data + 2U, payload);
|
|
||||||
bptc.encode(payload, data + 2U);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Regenerate the Slot Type
|
// Regenerate the Slot Type
|
||||||
CDMRSlotType slotType;
|
CDMRSlotType slotType;
|
||||||
slotType.putData(data + 2U);
|
slotType.putData(data + 2U);
|
||||||
|
|||||||
Reference in New Issue
Block a user