Compatibility/Modem Switch

* Add leading linefeed to [bxx:end] tags
 * Add delay to allow FLDIGI the time to switch modems.
This commit is contained in:
kk5vd 2024-04-09 16:45:37 -05:00 committed by dave-w1hkj
parent 24e183726d
commit 6754d04b4a
2 changed files with 8 additions and 5 deletions

View file

@ -91,11 +91,11 @@ Socket *tcpip = (Socket *)0;
Address *localaddr = (Address *)0;
const char *b64_start = "[b64:start]";
const char *b64_end = "[b64:end]";
const char *b64_end = "\n[b64:end]";
const char *b128_start = "[b128:start]";
const char *b128_end = "[b128:end]";
const char *b128_end = "\n[b128:end]";
const char *b256_start = "[b256:start]";
const char *b256_end = "[b256:end]";
const char *b256_end = "\n[b256:end]";
std::string errtext;

View file

@ -170,7 +170,11 @@ void send_new_modem(std::string modem)
} catch (const XmlRpc::XmlRpcException& e) {
LOG_ERROR("%s xmlrpc_errno = %d", e.getMessage().c_str(), xmlrpc_errno);
}
update_interval = XMLRPC_UPDATE_AFTER_WRITE;
// Give FLDIGI time to switch modems.
MilliSleep(150);
}
/** ********************************************************
@ -345,7 +349,7 @@ std::string get_char_timing(int character)
LOG_ERROR("%s xmlrpc_errno = %d", e.getMessage().c_str(), xmlrpc_errno);
}
update_interval = XMLRPC_UPDATE_AFTER_WRITE * 2;
update_interval = XMLRPC_UPDATE_AFTER_WRITE;
return response;
}
@ -630,7 +634,6 @@ void * xmlrpc_loop(void *d)
}
MilliSleep(XMLRPC_UPDATE_INTERVAL);
}
return NULL;
}