Revert "Move variable declaration to top"
This reverts commit ac964644be
.
This commit is contained in:
parent
ac964644be
commit
81b908cd4c
1 changed files with 1 additions and 2 deletions
|
@ -617,8 +617,6 @@ void CMMDVMHost::setMode(unsigned char mode, bool logging)
|
|||
assert(m_modem != NULL);
|
||||
assert(m_display != NULL);
|
||||
|
||||
std::string callsign = m_conf.getCallsign();
|
||||
|
||||
switch (mode) {
|
||||
case MODE_DSTAR:
|
||||
if (logging)
|
||||
|
@ -694,6 +692,7 @@ void CMMDVMHost::setMode(unsigned char mode, bool logging)
|
|||
if (m_mode == MODE_DMR && m_duplex)
|
||||
m_modem->writeDMRStart(false);
|
||||
m_modem->setMode(MODE_IDLE);
|
||||
std::string callsign = m_conf.getCallsign();
|
||||
m_display->setIdle(callsign.c_str());
|
||||
m_mode = MODE_IDLE;
|
||||
m_modeTimer.stop();
|
||||
|
|
Loading…
Reference in a new issue