The korad response read routine clears the receive buffers, so callers
don't have to. This amends commit
d2cc60bd4511.
The acquisition timeout is handled by common sw_limits support. Remove
the no longer referenced literal. This amends commit
3f9b48ae5f35.
if (ret < 0)
return NULL;
- memset(&reply, 0, sizeof(reply));
ret = korad_kaxxxxp_read_chars(serial, len, reply);
if (ret < 0)
return NULL;
#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,
return ret;
}
- reply[count] = 0;
-
if (value) {
sr_atof_ascii((const char *)&reply, value);
sr_dbg("value: %f", *value);