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 commit d2cc60bd45.

The acquisition timeout is handled by common sw_limits support. Remove
the no longer referenced literal. This amends commit 3f9b48ae5f.
This commit is contained in:
Gerhard Sittig 2020-09-01 17:06:55 +02:00
parent d2cc60bd45
commit 565c8c3545
2 changed files with 0 additions and 4 deletions

View File

@ -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;

View File

@ -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);