/* Response is first a CMD_ACK byte (ASCII '0' for OK,
* or '1' to signify an error. */
/* Response is first a CMD_ACK byte (ASCII '0' for OK,
* or '1' to signify an error. */
serial_readline(serial, &b, &len, 150);
if (len != 1)
continue;
serial_readline(serial, &b, &len, 150);
if (len != 1)
continue;
serial_readline(serial, &b, &len, 850);
if (len < 10)
continue;
serial_readline(serial, &b, &len, 850);
if (len < 10)
continue;
-static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sdi,
- const struct sr_channel_group *cg)
+static int config_set(uint32_t key, GVariant *data,
+ const struct sr_dev_inst *sdi, const struct sr_channel_group *cg)
-static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *sdi,
- const struct sr_channel_group *cg)
+static int config_list(uint32_t key, GVariant **data,
+ const struct sr_dev_inst *sdi, const struct sr_channel_group *cg)
{
return STD_CONFIG_LIST(key, data, sdi, cg, scanopts, drvopts, devopts);
}
{
return STD_CONFIG_LIST(key, data, sdi, cg, scanopts, drvopts, devopts);
}
serial = sdi->conn;
serial_source_add(sdi->session, serial, G_IO_IN, 50,
fluke_receive_data, (void *)sdi);
serial = sdi->conn;
serial_source_add(sdi->session, serial, G_IO_IN, 50,
fluke_receive_data, (void *)sdi);