Various minor cosmetics and consistency fixes.
This commit is contained in:
parent
ad0293f19c
commit
c442ffda0f
|
@ -778,8 +778,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
|
|||
|
||||
if (devc->dslogic) {
|
||||
dslogic_trigger_request(sdi);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
start_transfers(sdi);
|
||||
if ((ret = fx2lafw_command_start_acquisition(sdi)) != SR_OK) {
|
||||
fx2lafw_abort_acquisition(devc);
|
||||
|
|
|
@ -472,10 +472,7 @@ static int config_get(uint32_t key, GVariant **data, const struct sr_dev_inst *s
|
|||
*data = g_variant_new_string(devc->triggersource);
|
||||
break;
|
||||
case SR_CONF_TRIGGER_SLOPE:
|
||||
if (devc->triggerslope == SLOPE_POSITIVE)
|
||||
s = "r";
|
||||
else
|
||||
s = "f";
|
||||
s = (devc->triggerslope == SLOPE_POSITIVE) ? "r" : "f";
|
||||
*data = g_variant_new_string(s);
|
||||
break;
|
||||
case SR_CONF_HORIZ_TRIGGERPOS:
|
||||
|
|
|
@ -198,7 +198,7 @@ SR_PRIV int mso_dac_out(const struct sr_dev_inst *sdi, uint16_t val)
|
|||
return mso_send_control_message(devc->serial, ARRAY_AND_SIZE(ops));
|
||||
}
|
||||
|
||||
SR_PRIV inline uint16_t mso_calc_raw_from_mv(struct dev_context * devc)
|
||||
SR_PRIV uint16_t mso_calc_raw_from_mv(struct dev_context *devc)
|
||||
{
|
||||
return (uint16_t) (0x200 -
|
||||
((devc->dso_trigger_voltage / devc->dso_probe_attn) /
|
||||
|
|
|
@ -134,7 +134,7 @@ SR_PRIV int mso_read_buffer(struct sr_dev_inst *sdi);
|
|||
SR_PRIV int mso_arm(const struct sr_dev_inst *sdi);
|
||||
SR_PRIV int mso_force_capture(struct sr_dev_inst *sdi);
|
||||
SR_PRIV int mso_dac_out(const struct sr_dev_inst *sdi, uint16_t val);
|
||||
SR_PRIV inline uint16_t mso_calc_raw_from_mv(struct dev_context *devc);
|
||||
SR_PRIV uint16_t mso_calc_raw_from_mv(struct dev_context *devc);
|
||||
SR_PRIV int mso_reset_fsm(struct sr_dev_inst *sdi);
|
||||
SR_PRIV int mso_toggle_led(struct sr_dev_inst *sdi, int state);
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
|
||||
/** @file
|
||||
* <em>Manson HCS-3xxx Series</em> power supply driver
|
||||
* <em>Manson HCS-3xxx series</em> power supply driver
|
||||
* @internal
|
||||
*/
|
||||
|
||||
|
|
|
@ -794,8 +794,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
|
|||
return SR_OK;
|
||||
}
|
||||
|
||||
static int dev_acquisition_start(const struct sr_dev_inst *sdi,
|
||||
void *cb_data)
|
||||
static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
|
||||
{
|
||||
struct dev_context *devc;
|
||||
struct sr_serial_dev_inst *serial;
|
||||
|
|
|
@ -250,8 +250,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
|
|||
return SR_OK;
|
||||
}
|
||||
|
||||
static int dev_acquisition_start(const struct sr_dev_inst *sdi,
|
||||
void *cb_data)
|
||||
static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
|
||||
{
|
||||
struct dev_context *devc;
|
||||
struct sr_serial_dev_inst *serial;
|
||||
|
|
Loading…
Reference in New Issue