mirror of
https://github.com/g4klx/DMRGateway
synced 2025-12-21 05:25:40 +08:00
Clean up the code.
This commit is contained in:
15
Rewrite.cpp
15
Rewrite.cpp
@@ -22,25 +22,22 @@
|
||||
#include "DMRFullLC.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <cassert>
|
||||
|
||||
CRewrite::CRewrite() :
|
||||
m_slot(0U),
|
||||
m_tg(0U),
|
||||
CRewrite::CRewrite(unsigned int slot, unsigned int tg) :
|
||||
m_slot(slot),
|
||||
m_tg(tg),
|
||||
m_lc(NULL),
|
||||
m_embeddedLC()
|
||||
{
|
||||
assert(slot == 1U || slot == 2U);
|
||||
assert(tg < 16U);
|
||||
}
|
||||
|
||||
CRewrite::~CRewrite()
|
||||
{
|
||||
}
|
||||
|
||||
void CRewrite::setParams(unsigned int slot, unsigned int tg)
|
||||
{
|
||||
m_slot = slot;
|
||||
m_tg = tg;
|
||||
}
|
||||
|
||||
void CRewrite::process(CDMRData& data)
|
||||
{
|
||||
data.setSlotNo(m_slot);
|
||||
|
||||
Reference in New Issue
Block a user