diff --git a/yaesu/ft817.c b/yaesu/ft817.c index 481fef805..8b236b68d 100644 --- a/yaesu/ft817.c +++ b/yaesu/ft817.c @@ -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); diff --git a/yaesu/ft817.h b/yaesu/ft817.h index 607a2d315..4bccf4c9f 100644 --- a/yaesu/ft817.h +++ b/yaesu/ft817.h @@ -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