mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
Better way to send to display that MMDVMHost is quitting
This commit is contained in:
@@ -971,7 +971,7 @@ int CMMDVMHost::run()
|
||||
CThread::sleep(5U);
|
||||
}
|
||||
|
||||
setMode(MODE_IDLE);
|
||||
setMode(MODE_QUIT);
|
||||
|
||||
m_modem->close();
|
||||
delete m_modem;
|
||||
@@ -1560,6 +1560,9 @@ void CMMDVMHost::setMode(unsigned char mode)
|
||||
m_cwIdTimer.start();
|
||||
}
|
||||
m_display->setIdle();
|
||||
if (mode==MODE_QUIT) {
|
||||
m_display->setQuit();
|
||||
}
|
||||
m_mode = MODE_IDLE;
|
||||
m_modeTimer.stop();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user