Allow icom read_frame to return when bus collision occurs

https://github.com/Hamlib/Hamlib/issues/1280
pull/1289/head
Mike Black W9MDB 2023-04-26 15:38:08 -05:00
rodzic addee81f43
commit e82f127965
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -540,7 +540,8 @@ static int read_icom_frame_generic(hamlib_port_t *p,
&& (rxbuffer[read - 1] != COL));
// Check that we have a valid frame preamble (which might be just a single preable character)
if (rxbuffer[0] != PR)
// Or an error code
if (rxbuffer[0] != PR && rxbuffer[0] != COL)
{
return -RIG_EPROTO;
}

Wyświetl plik

@ -35,7 +35,7 @@
#include <sys/time.h>
#endif
#define BACKEND_VER "20230425"
#define BACKEND_VER "20230426"
#define ICOM_IS_ID31 rig_is_model(rig, RIG_MODEL_ID31)
#define ICOM_IS_ID51 rig_is_model(rig, RIG_MODEL_ID51)