mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-06 23:13:48 +00:00
Clean up the code.
This commit is contained in:
parent
2fd934fd6a
commit
a66db5d32a
5 changed files with 16 additions and 25 deletions
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue