mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
Better way to send to display that MMDVMHost is quitting
This commit is contained in:
parent
df2b27f585
commit
64e3ae6d30
16 changed files with 124 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue