korad-kaxxxxp: remove obsolete code (clear before read, timeout literal)
The korad response read routine clears the receive buffers, so callers don't have to. This amends commitd2cc60bd45
. The acquisition timeout is handled by common sw_limits support. Remove the no longer referenced literal. This amends commit3f9b48ae5f
.
This commit is contained in:
parent
d2cc60bd45
commit
565c8c3545
|
@ -159,7 +159,6 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
|
|||
if (ret < 0)
|
||||
return NULL;
|
||||
|
||||
memset(&reply, 0, sizeof(reply));
|
||||
ret = korad_kaxxxxp_read_chars(serial, len, reply);
|
||||
if (ret < 0)
|
||||
return NULL;
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include <config.h>
|
||||
#include "protocol.h"
|
||||
|
||||
#define REQ_TIMEOUT_MS 500
|
||||
#define DEVICE_PROCESSING_TIME_MS 80
|
||||
|
||||
SR_PRIV int korad_kaxxxxp_send_cmd(struct sr_serial_dev_inst *serial,
|
||||
|
@ -309,8 +308,6 @@ SR_PRIV int korad_kaxxxxp_get_value(struct sr_serial_dev_inst *serial,
|
|||
return ret;
|
||||
}
|
||||
|
||||
reply[count] = 0;
|
||||
|
||||
if (value) {
|
||||
sr_atof_ascii((const char *)&reply, value);
|
||||
sr_dbg("value: %f", *value);
|
||||
|
|
Loading…
Reference in New Issue