Revert "Move variable declaration to top"

This reverts commit ac964644be.
This commit is contained in:
phl0 2016-04-07 22:08:33 +02:00
parent ac964644be
commit 81b908cd4c

View file

@ -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();