mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-23 12:48:40 -05:00
Use non localized get frequency commands with Commander
Commander sends invalid UTF-8 strings for numbers that contain group separators, e.g. non-break space U+00A0 in French regional number formats. Revert to old undocumented frequency query commands that always use '.' and ',' for number punctuation. Merged from wsjtx-1.4 branch. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4519 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
69b2eac75a
commit
507a6c9b39
@ -184,7 +184,7 @@ void DXLabSuiteCommanderTransceiver::poll ()
|
||||
bool quiet {true};
|
||||
#endif
|
||||
|
||||
auto reply = command_with_reply ("<command:11>CmdSendFreq<parameters:0>", quiet);
|
||||
auto reply = command_with_reply ("<command:10>CmdGetFreq<parameters:0>", quiet);
|
||||
if (0 == reply.indexOf ("<CmdFreq:"))
|
||||
{
|
||||
// remove thousands separator and DP - relies of n.nnn kHz
|
||||
@ -208,7 +208,7 @@ void DXLabSuiteCommanderTransceiver::poll ()
|
||||
|
||||
if (state ().split ())
|
||||
{
|
||||
reply = command_with_reply ("<command:13>CmdSendTXFreq<parameters:0>", quiet);
|
||||
reply = command_with_reply ("<command:12>CmdGetTXFreq<parameters:0>", quiet);
|
||||
if (0 == reply.indexOf ("<CmdTXFreq:"))
|
||||
{
|
||||
// remove thousands separator and DP - relies of n.nnn kHz format so we ca do uint conversion
|
||||
|
Loading…
Reference in New Issue
Block a user