* @internal
*/
+#include <config.h>
#include "protocol.h"
#define REQ_TIMEOUT_MS 500
sr_dbg("Sending '%s'.", cmd_esc);
g_free(cmd_esc);
- if ((ret = serial_write_blocking(serial, cmdbuf, strlen(cmdbuf), 0)) < 0) {
+ if ((ret = serial_write_blocking(serial, cmdbuf, strlen(cmdbuf),
+ serial_timeout(serial, strlen(cmdbuf)))) < 0) {
sr_err("Error sending command: %d.", ret);
return ret;
}
* @retval SR_ERR Error.
* @retval SR_ERR_ARG Invalid argument.
*/
-SR_PRIV int hcs_read_reply(struct sr_serial_dev_inst *serial, int lines, char* buf, int buflen)
+SR_PRIV int hcs_read_reply(struct sr_serial_dev_inst *serial, int lines, char *buf, int buflen)
{
int l_recv = 0;
int bufpos = 0;