Move variable declaration to top

This commit is contained in:
phl0 2016-04-07 13:30:57 +02:00
parent f5e44af686
commit ac964644be

View file

@ -617,6 +617,8 @@ 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)
@ -692,7 +694,6 @@ 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();