mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 22:45:31 +00:00
More tweaks for lockout operation.
This commit is contained in:
parent
05e720a635
commit
ae40ad3089
2 changed files with 10 additions and 4 deletions
|
|
@ -186,6 +186,12 @@ int CMMDVMHost::run()
|
|||
setMode(MODE_IDLE);
|
||||
|
||||
while (!m_killed) {
|
||||
bool lockout = m_modem->hasLockout();
|
||||
if (lockout && m_mode != MODE_LOCKOUT)
|
||||
setMode(MODE_LOCKOUT);
|
||||
else if (!lockout && m_mode == MODE_LOCKOUT)
|
||||
setMode(MODE_IDLE);
|
||||
|
||||
unsigned char data[200U];
|
||||
unsigned int len;
|
||||
bool ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue