Add some debug to serial.c

pull/361/head
Michael Black W9MDB 2020-08-10 22:26:25 -05:00
rodzic 59d22e0748
commit 65fbc1cd4b
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -345,9 +345,9 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp)
} }
/* TODO */ /* TODO */
rig_debug(RIG_DEBUG_TRACE, "%s: cfsetispeed\n", __func__); rig_debug(RIG_DEBUG_TRACE, "%s: cfsetispeed=%d\n", __func__, speed);
cfsetispeed(&options, speed); cfsetispeed(&options, speed);
rig_debug(RIG_DEBUG_TRACE, "%s: cfsetospeed\n", __func__); rig_debug(RIG_DEBUG_TRACE, "%s: cfsetospeed=%d\n", __func__, speed);
cfsetospeed(&options, speed); cfsetospeed(&options, speed);
/* /*
@ -364,6 +364,9 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp)
* Set data to requested values. * Set data to requested values.
* *
*/ */
rig_debug(RIG_DEBUG_TRACE, "%s: data_bits=%d\n", __func__,
rp->parm.serial.data_bits);
switch (rp->parm.serial.data_bits) switch (rp->parm.serial.data_bits)
{ {
case 7: case 7:
@ -416,6 +419,8 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp)
* Set parity to requested values. * Set parity to requested values.
* *
*/ */
rig_debug(RIG_DEBUG_TRACE, "%s: parity=%d\n", __func__, rp->parm.serial.parity);
switch (rp->parm.serial.parity) switch (rp->parm.serial.parity)
{ {
case RIG_PARITY_NONE: case RIG_PARITY_NONE: