Make kenwood a bit more robust to discern between no reply and corrupted/unexpected reply

This logic should be usable to use AI mode eventually or share serial splitter line
pull/1161/head
Mike Black W9MDB 2022-11-18 15:53:34 -06:00
rodzic b133b90419
commit 0bacb35f06
2 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -525,7 +525,15 @@ transaction_read:
if (retry_read++ < rs->rigport.retry) if (retry_read++ < rs->rigport.retry)
{ {
goto transaction_write; if (strlen(buffer) == 0)
{
goto transaction_write; // didn't get an answer so send again
}
else
{
// should be able to handle transceive mode here
goto transaction_read; // might be an async or corrupt reply so we'll read until timeout
}
} }
retval = -RIG_EPROTO; retval = -RIG_EPROTO;

Wyświetl plik

@ -29,7 +29,7 @@
#include "misc.h" #include "misc.h"
#include "idx_builtin.h" #include "idx_builtin.h"
#define BACKEND_VER "20221021" #define BACKEND_VER "20221118"
#define EOM_KEN ';' #define EOM_KEN ';'
#define EOM_TH '\r' #define EOM_TH '\r'