Skip to content

Commit

Permalink
Merge branch 'master' of github.com:g4klx/MMDVMHost
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx committed Dec 21, 2016
2 parents a28508b + d4d1773 commit a3d28f7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions DMRSlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,12 @@ void CDMRSlot::writeModem(unsigned char *data, unsigned int len)
bool audioSync = (data[1U] & DMR_SYNC_AUDIO) == DMR_SYNC_AUDIO;

if (dataSync) {
CDMRSlotType slotType;
slotType.putData(data + 2U);
// Get the type from the packet metadata
unsigned char dataType = data[1U] & 0x0FU;

unsigned char dataType = slotType.getDataType();
CDMRSlotType slotType;
slotType.setColorCode(m_colorCode);
slotType.setDataType(dataType);

if (dataType == DT_VOICE_LC_HEADER) {
if (m_rfState == RS_RF_AUDIO)
Expand Down

0 comments on commit a3d28f7

Please sign in to comment.