Move write_block debug statement before post_write_delay so the debug timing makes more sense

pull/943/head
Mike Black W9MDB 2022-01-19 12:54:31 -06:00
rodzic 2d85464688
commit b6c5ecd584
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1046,6 +1046,9 @@ int HAMLIB_API write_block(hamlib_port_t *p, const unsigned char *txbuffer, size
}
}
rig_debug(RIG_DEBUG_TRACE, "%s(): TX %d bytes, method=%d\n", __func__, (int)count, method);
dump_hex((unsigned char *) txbuffer, count);
if (p->post_write_delay > 0)
{
method |= 4;
@ -1067,9 +1070,6 @@ int HAMLIB_API write_block(hamlib_port_t *p, const unsigned char *txbuffer, size
/* with sequential fast writes*/
}
rig_debug(RIG_DEBUG_TRACE, "%s(): TX %d bytes, method=%d\n", __func__, (int)count, method);
dump_hex((unsigned char *) txbuffer, count);
return RIG_OK;
}