ft817: Moving delay value into #define section of the header

pull/56/head
Eriks Dobelis 2018-10-29 08:46:42 +02:00
rodzic 1e849a6ba7
commit 0b71ba91a1
2 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -886,7 +886,7 @@ int ft817_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
}
if (ptt_response != ptt) {
usleep(100000l); // Before next try wait for 0.1 seconds. Helps with slower rigs cloning FT817 protocol (e.g. MCHF)
usleep(1000l * FT817_RETRY_DELAY); // Wait before next try. Helps with slower rigs cloning FT817 protocol (e.g. MCHF)
}
} while (ptt_response != ptt && retries-- > 0);

Wyświetl plik

@ -52,6 +52,13 @@
*/
#define FT817_TIMEOUT 3000
/*
* Return from TX to RX may have a delay. If status is not changed
* on the first attempt, wait this amount of milliseconds before
* each next next attempts.
*/
#define FT817_RETRY_DELAY 100
/*
* The time the TX, RX and FREQ/MODE status are cached (in millisec).
* This optimises the common case of doing eg. rig_get_freq() and