Make icom echo check skip the 1st two bytes of the frame

Saw an instance where the 1st 0xfe was corrupted so this allows for that
pull/1347/head
Mike Black W9MDB 2023-07-24 17:35:14 -05:00
rodzic da96315dc5
commit fcba1cab20
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -259,7 +259,9 @@ collision_retry:
RETURNFUNC(-RIG_EPROTO);
}
if (memcmp(buf, sendbuf, frm_len) != 0)
// first 2 bytes of everyting are 0xfe so we won't test those
// this allows some corruptin of the 0xfe bytes which has been seen in the wild
if (memcmp(&buf[2], &sendbuf[2], frm_len-2) != 0)
{
/* Frames are different? */
/* Problem on ci-v bus? */

Wyświetl plik

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