testo: Minor indentation fixes.
This commit is contained in:
parent
f53ff64369
commit
176d18cab1
|
@ -27,26 +27,26 @@ SR_PRIV int testo_set_serial_params(struct sr_usb_dev_inst *usb)
|
||||||
|
|
||||||
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_BAUDRATE,
|
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_BAUDRATE,
|
||||||
FTDI_BAUDRATE_115200, FTDI_INDEX, NULL, 0, 10)) < 0) {
|
FTDI_BAUDRATE_115200, FTDI_INDEX, NULL, 0, 10)) < 0) {
|
||||||
sr_err("Failed to set baudrate: %s", libusb_error_name(ret));
|
sr_err("Failed to set baudrate: %s", libusb_error_name(ret));
|
||||||
return SR_ERR;
|
return SR_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_PARAMS,
|
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_PARAMS,
|
||||||
FTDI_PARAMS_8N1, FTDI_INDEX, NULL, 0, 10)) < 0) {
|
FTDI_PARAMS_8N1, FTDI_INDEX, NULL, 0, 10)) < 0) {
|
||||||
sr_err("Failed to set comm parameters: %s", libusb_error_name(ret));
|
sr_err("Failed to set comm parameters: %s", libusb_error_name(ret));
|
||||||
return SR_ERR;
|
return SR_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_FLOWCTRL,
|
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_FLOWCTRL,
|
||||||
FTDI_FLOW_NONE, FTDI_INDEX, NULL, 0, 10)) < 0) {
|
FTDI_FLOW_NONE, FTDI_INDEX, NULL, 0, 10)) < 0) {
|
||||||
sr_err("Failed to set flow control: %s", libusb_error_name(ret));
|
sr_err("Failed to set flow control: %s", libusb_error_name(ret));
|
||||||
return SR_ERR;
|
return SR_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_MODEMCTRL,
|
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_MODEMCTRL,
|
||||||
FTDI_MODEM_ALLHIGH, FTDI_INDEX, NULL, 0, 10)) < 0) {
|
FTDI_MODEM_ALLHIGH, FTDI_INDEX, NULL, 0, 10)) < 0) {
|
||||||
sr_err("Failed to set modem control: %s", libusb_error_name(ret));
|
sr_err("Failed to set modem control: %s", libusb_error_name(ret));
|
||||||
return SR_ERR;
|
return SR_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
return SR_OK;
|
return SR_OK;
|
||||||
|
|
Loading…
Reference in New Issue