kopia lustrzana https://github.com/Hamlib/Hamlib
Reduce verbosity of rig_strrmode and read_string
rodzic
a55a664401
commit
8f93173462
|
@ -671,7 +671,7 @@ int HAMLIB_API read_string(hamlib_port_t *p,
|
||||||
int rd_count, total_count = 0;
|
int rd_count, total_count = 0;
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __func__);
|
||||||
|
|
||||||
if (!p || !rxbuffer)
|
if (!p || !rxbuffer)
|
||||||
{
|
{
|
||||||
|
@ -754,7 +754,8 @@ int HAMLIB_API read_string(hamlib_port_t *p,
|
||||||
*/
|
*/
|
||||||
rd_count = port_read(p, &rxbuffer[total_count], 1);
|
rd_count = port_read(p, &rxbuffer[total_count], 1);
|
||||||
|
|
||||||
if (rd_count < 0)
|
/* if we get 0 bytes or an error something is wrong */
|
||||||
|
if (rd_count <= 0)
|
||||||
{
|
{
|
||||||
dump_hex((unsigned char *) rxbuffer, total_count);
|
dump_hex((unsigned char *) rxbuffer, total_count);
|
||||||
rig_debug(RIG_DEBUG_ERR,
|
rig_debug(RIG_DEBUG_ERR,
|
||||||
|
|
|
@ -384,7 +384,7 @@ const char * HAMLIB_API rig_strrmode(rmode_t mode)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called mode=0x%"PRXll"\n", __func__, mode);
|
rig_debug(RIG_DEBUG_TRACE, "%s called mode=0x%"PRXll"\n", __func__, mode);
|
||||||
|
|
||||||
if (mode == RIG_MODE_NONE)
|
if (mode == RIG_MODE_NONE)
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue