mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
More tweaks for lockout operation.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user